From 03122a39f821721cbf0cbb8d8d362b84bd6d4601 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 15 Mar 2025 16:58:28 +0800 Subject: [PATCH] Remove the "path segments" section in index.htmpl --- req.ha | 2 +- templates/index.htmpl | 8 +------- diff --git a/req.ha b/req.ha index 3d2e2e1d74c5a2e6c467ff0d1c0678e40d884776..3329670c15f11e915f41168dcee04c2f1259a391 100644 --- a/req.ha +++ b/req.ha @@ -34,7 +34,7 @@ }; 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 1b4dd8be8eca78c115814b0c608dba733e8ccec9..e67cc097cc3fb0102f8d4d40933431e51df56dad 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) }} @@ -7,12 +7,6 @@ Index – {{ global.title }} {{ render _tp_header(handle, "test", "test") }} -

Path segments

-
-- 2.48.1