diff --git a/src/routes/example.go b/src/routes/example.go index c4b4987..af6ec1b 100644 --- a/src/routes/example.go +++ b/src/routes/example.go @@ -10,7 +10,7 @@ func ExampleHandler(w http.ResponseWriter, r *http.Request) { Title: "Example Page", } - tmpl, err := template.ParseFiles("web/views/.layout.html", "web/views/example.html") + tmpl, err := template.ParseFiles("web/views/#layout.html", "web/views/example.html") if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return diff --git a/src/routes/root.go b/src/routes/root.go index e9cd9be..90205ff 100644 --- a/src/routes/root.go +++ b/src/routes/root.go @@ -14,7 +14,7 @@ func RootHandler(w http.ResponseWriter, r *http.Request) { Title: "Home Page", } - tmpl, err := template.ParseFiles("web/views/.layout.html", "web/views/index.html") + tmpl, err := template.ParseFiles("web/views/#layout.html", "web/views/index.html") if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return diff --git a/web/views/.layout.html b/web/views/#layout.html similarity index 100% rename from web/views/.layout.html rename to web/views/#layout.html