func init() { templates := helpers.GetSharedTemplates() staticTemplates = map[string]*template.Template{ "index": template.Must(template.ParseFiles(append(templates, "views/static/index.html")...)), "contact": template.Must(template.ParseFiles(append(templates, "views/static/contact.html")...)), } }
func init() { templates := helpers.GetSharedTemplates() userTemplates = map[string]*template.Template{ "index": template.Must(template.ParseFiles(append(templates, "views/user/index.html")...)), "show": template.Must(template.ParseFiles(append(templates, "views/user/show.html")...)), "edit": template.Must(template.ParseFiles(append(templates, "views/user/edit.html")...)), "new": template.Must(template.ParseFiles(append(templates, "views/user/new.html")...)), } }