diff options
Diffstat (limited to '')
-rw-r--r-- | templates/index.htmpl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/index.htmpl b/templates/index.htmpl index e67cc09..1b4dd8b 100644 --- a/templates/index.htmpl +++ b/templates/index.htmpl @@ -1,4 +1,4 @@ -{{ define tp_index(handle: io::handle) (void | io::error | nomem) }} +{{ define tp_index(handle: io::handle, segments: []str) (void | io::error | nomem) }} <!DOCTYPE html> <html lang="en"> <head> @@ -7,6 +7,12 @@ </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> |