Fixed the templating system
This commit is contained in:
@ -14,4 +14,13 @@ func RegisterRoutes(f *flamego.Flame) {
|
||||
})
|
||||
|
||||
// item list route - lists all of the items in the database
|
||||
f.Group("/item", func() {
|
||||
f.Get("/list", func(t template.Template, data template.Data) {
|
||||
t.HTML(http.StatusOK, "item/list")
|
||||
})
|
||||
|
||||
f.Get("/create", func(t template.Template, data template.Data) {
|
||||
t.HTML(http.StatusOK, "item/create")
|
||||
})
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user