diff options
-rw-r--r-- | req.ha | 2 | ||||
-rw-r--r-- | templates/index.htmpl | 8 |
2 files changed, 2 insertions, 8 deletions
@@ -34,7 +34,7 @@ fn handlereq(conn: io::handle, request: *http::request) (void | io::error | nome if (len(segments) == 0) { start_response(conn, 200, "text/html")?; - return tp_index(conn, segments); + return tp_index(conn); }; if (segments[0] == ":") { diff --git a/templates/index.htmpl b/templates/index.htmpl index 1b4dd8b..e67cc09 100644 --- a/templates/index.htmpl +++ b/templates/index.htmpl @@ -1,4 +1,4 @@ -{{ define tp_index(handle: io::handle, segments: []str) (void | io::error | nomem) }} +{{ define tp_index(handle: io::handle) (void | io::error | nomem) }} <!DOCTYPE html> <html lang="en"> <head> @@ -7,12 +7,6 @@ </head> <body> {{ render _tp_header(handle, "test", "test") }} -<h2>Path segments</h2> -<ul> - {{ for let s .. segments }} - <li>{{ s }}</li> - {{ end }} -</ul> <div class="padding-wrapper"> <table class="wide rounded"> <thead> |