Implemented basic functions

This commit is contained in:
Magnus Åhall 2024-04-30 08:04:16 +02:00
parent 89f483171a
commit 965e2daeb3
22 changed files with 711 additions and 58 deletions

View file

@ -52,6 +52,7 @@ func (p *Page) Render(w http.ResponseWriter) {
"Data": p.Data,
}
logger.Info("foo", "tmpl", tmpl)
err = tmpl.Execute(w, data)
if err != nil {
httpError(w, we.Wrap(err).Log())