From cb2517bee240c592c07e77c1507877cf47ace553 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 15 Mar 2025 01:16:39 +0800 Subject: Separate paths into segments --- templates/index.htmpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'templates/index.htmpl') 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) }} @@ -7,6 +7,12 @@ {{ render _tp_header(handle, "test", "test") }} +

Path segments

+
-- cgit v1.2.3