Fixed the templating system
This commit is contained in:
1 parent
d56d0ba19a
commit
e1b64766b6
6 files changed
+102
-15
No files matched your search
@@ -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