Skip to content

Instantly share code, notes, and snippets.

@Cibernomadas
Created June 18, 2018 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cibernomadas/834c4fc66b5bd80e76a00815cbfec7de to your computer and use it in GitHub Desktop.
Save Cibernomadas/834c4fc66b5bd80e76a00815cbfec7de to your computer and use it in GitHub Desktop.
func TemplateRender() *gintemplate.TemplateEngine {
return gintemplate.New(gintemplate.TemplateConfig{
Root: path.Join("webapp", "template"),
Extension: ".tpl",
Master: path.Join("layouts", "base"),
Partials: TemplatePartials(),
Funcs: TemplateFuncs(),
DisableCache: true,
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment