Remove templating completely
This commit is contained in:
@ -31,12 +31,6 @@ func (h *Handler) Serve() {
|
||||
router := gin.Default()
|
||||
router.FuncMap["now"] = time.Now
|
||||
|
||||
templates, err := NewTemplates(router.FuncMap)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
router.HTMLRender = templates
|
||||
static, err := fs.Sub(web.Static, "dist")
|
||||
if err != nil {
|
||||
panic("couldn't open static files")
|
||||
|
Reference in New Issue
Block a user