Modularise templates
This commit is contained in:
@@ -22,7 +22,7 @@ func helpTemplate(w http.ResponseWriter, r *http.Request) {
|
||||
BarcodeOptions: barcodeOptions,
|
||||
}
|
||||
|
||||
tmpl := template.Must(template.New("help.html").ParseFiles("templates/help.html"))
|
||||
tmpl := template.Must(template.New("base.html").ParseFiles("templates/base.html", "templates/help.html"))
|
||||
|
||||
err := tmpl.Execute(w, data)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user