diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-15 01:16:39 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-15 01:16:39 +0800 |
commit | cb2517bee240c592c07e77c1507877cf47ace553 (patch) | |
tree | ea316415dfb1f29684c80e108762e4a66c937fb4 /templates | |
parent | Add horrible patch needed to make net::uri work (diff) | |
download | forge-cb2517bee240c592c07e77c1507877cf47ace553.tar.gz forge-cb2517bee240c592c07e77c1507877cf47ace553.tar.zst forge-cb2517bee240c592c07e77c1507877cf47ace553.zip |
Separate paths into segments
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> |