Logging and deps

This commit is contained in:
2024-05-08 14:43:57 -06:00
parent 994a2fabd6
commit 8fed511607
8 changed files with 63 additions and 43 deletions

View File

@ -28,14 +28,14 @@ func RenderTemplate(w http.ResponseWriter, layout string, partials []string, pro
// Parse the templates
ts, err := template.ParseFS(templatefs.FS, templates...)
if err != nil {
log.Print(err.Error())
LogError.Print(err.Error())
return err
}
// Execute the layout template
err = ts.ExecuteTemplate(w, layout, props)
if err != nil {
log.Print(err.Error())
LogError.Print(err.Error())
return err
}