rename layout with #, otherwise the initial output.css doesn't include it for some reason
This commit is contained in:
parent
a3d91e7304
commit
d7cb0d06f4
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user