From 0e6d68c7d1f2407ac64612e4c0c74c97a4723a69 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 18 Aug 2024 08:00:00 +0800 Subject: [PATCH] Use separate tmpl/ folder --- main.go | 2 +- index.tmpl => tmpl/index.tmpl | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename index.tmpl => tmpl/index.tmpl (100%) diff --git a/main.go b/main.go index 374fdcb..b485d40 100644 --- a/main.go +++ b/main.go @@ -39,7 +39,7 @@ func main() { } log.Printf("Setting up templates\n") - tmpl, err = template.ParseGlob("*.tmpl") + tmpl, err = template.ParseGlob("tmpl/*") e(err) log.Printf("Registering handlers\n") diff --git a/index.tmpl b/tmpl/index.tmpl similarity index 100% rename from index.tmpl rename to tmpl/index.tmpl -- 2.11.4.GIT