glob parse templates

This commit is contained in:
2026-11-18 16:51:47 -05:00
parent 89e9de8a37
commit a58d9af781
+1 -8
View File
@@ -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)
}