Implemented basic functions
This commit is contained in:
parent
89f483171a
commit
965e2daeb3
22 changed files with 711 additions and 58 deletions
1
page.go
1
page.go
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue