Started server

This commit is contained in:
Simon Martens
2026-02-19 15:09:44 +01:00
parent df79656c77
commit 59fb813c85
7 changed files with 115 additions and 94 deletions

View File

@@ -1,8 +1,6 @@
package pages
import (
"bytes"
"github.com/Theodor-Springmann-Stiftung/lenz-web/app"
)
@@ -23,11 +21,3 @@ func (p HomePage) Model(a *app.App, route app.Route) (map[string]any, error) {
"Message": "Template system is working.",
}, nil
}
func (p HomePage) Render(a *app.App, route app.Route, model map[string]any) ([]byte, error) {
var buf bytes.Buffer
if err := a.Templates().ExecuteTemplate(&buf, "home", model); err != nil {
return nil, err
}
return buf.Bytes(), nil
}