From 9dafb5383dc13833e6153bb3a4a2015719cf2a5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20=C3=85hall?= Date: Wed, 12 Nov 2025 07:55:03 +0100 Subject: [PATCH] Use embedded index.html, bumped to v3 --- main.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 4c91f6b..4f3ea87 100644 --- a/main.go +++ b/main.go @@ -17,7 +17,7 @@ import ( "strings" ) -const VERSION = "v2" +const VERSION = "v3" var ( flagVerbose bool @@ -69,10 +69,7 @@ func replaceTilde(str string) string { // {{{ func pageIndex(w http.ResponseWriter, r *http.Request) { // {{{ var tmpl *template.Template var err error - if false { - tmpl, err = template.ParseFS(fs, "static/html/index.html") - } - tmpl, err = template.ParseFiles("static/html/index.html") + tmpl, err = template.ParseFS(fs, "static/html/index.html") if err != nil { w.Write([]byte(err.Error())) return