mirror of
https://github.com/astaxie/beego.git
synced 2024-11-06 06:00:54 +00:00
Merge pull request #3547 from snedzad/patch-1
Register .gohtml extension
This commit is contained in:
commit
387d387080
@ -38,7 +38,7 @@ var (
|
|||||||
beeViewPathTemplates = make(map[string]map[string]*template.Template)
|
beeViewPathTemplates = make(map[string]map[string]*template.Template)
|
||||||
templatesLock sync.RWMutex
|
templatesLock sync.RWMutex
|
||||||
// beeTemplateExt stores the template extension which will build
|
// beeTemplateExt stores the template extension which will build
|
||||||
beeTemplateExt = []string{"tpl", "html"}
|
beeTemplateExt = []string{"tpl", "html", "gohtml"}
|
||||||
// beeTemplatePreprocessors stores associations of extension -> preprocessor handler
|
// beeTemplatePreprocessors stores associations of extension -> preprocessor handler
|
||||||
beeTemplateEngines = map[string]templatePreProcessor{}
|
beeTemplateEngines = map[string]templatePreProcessor{}
|
||||||
beeTemplateFS = defaultFSFunc
|
beeTemplateFS = defaultFSFunc
|
||||||
|
Loading…
Reference in New Issue
Block a user