From be8386c73a40d0ed1a397619b13592c8261e016a Mon Sep 17 00:00:00 2001 From: brent saner Date: Thu, 18 Dec 2025 02:18:05 -0500 Subject: [PATCH] v0.2.2 Fixed: * html/template requires escaping comments you explicitly want rendered as a template.HTML type. --- server/funcs_page.go | 13 +++++++++++++ server/tpl/meta.top.html.tpl | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/server/funcs_page.go b/server/funcs_page.go index 8a3c208..7f17758 100644 --- a/server/funcs_page.go +++ b/server/funcs_page.go @@ -2,6 +2,7 @@ package server import ( `fmt` + `html/template` `net/url` ) @@ -62,3 +63,15 @@ func (p *Page) RenderIP(indent uint) (s string) { return } + +func (p *Page) RenderReqId() (s template.HTML) { + + s = template.HTML( + fmt.Sprintf( + "", + p.ReqUUID.String(), + ), + ) + + return +} diff --git a/server/tpl/meta.top.html.tpl b/server/tpl/meta.top.html.tpl index 04eadbb..aeba5be 100644 --- a/server/tpl/meta.top.html.tpl +++ b/server/tpl/meta.top.html.tpl @@ -4,7 +4,7 @@ {{- $linkico := "🔗" -}} - + {{ $page.RenderReqId }} {{ getTitle $page.PageType }}