From d7cb0d06f4225f8b088cdee5ac301e1fd37dbc2b Mon Sep 17 00:00:00 2001 From: 0ceanSlim Date: Thu, 23 May 2024 07:28:03 -0400 Subject: [PATCH] rename layout with #, otherwise the initial output.css doesn't include it for some reason --- src/routes/example.go | 2 +- src/routes/root.go | 2 +- web/views/{.layout.html => #layout.html} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename web/views/{.layout.html => #layout.html} (100%) 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