From a58d9af781b06d638c42b842a6a832986e75303e Mon Sep 17 00:00:00 2001 From: whoswhip Date: Wed, 18 Nov 2026 16:51:47 -0500 Subject: [PATCH] glob parse templates --- main.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/main.go b/main.go index 8fb8b2d..193dd22 100644 --- a/main.go +++ b/main.go @@ -37,14 +37,7 @@ func main() { pages, err := template.New("").Funcs(template.FuncMap{ "hasPrefix": strings.HasPrefix, - }).ParseFiles( - "templates/home.html", - "templates/header.html", - "templates/upload.html", - "templates/tos.html", - "templates/privacy.html", - "templates/faq.html", - ) + }).ParseGlob("templates/*.html") if err != nil { log.Fatal(err) }