1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-23 06:50:50 +00:00

Merge pull request #3547 from snedzad/patch-1

Register .gohtml extension
This commit is contained in:
astaxie 2019-02-25 11:43:37 +08:00 committed by GitHub
commit 387d387080
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ var (
beeViewPathTemplates = make(map[string]map[string]*template.Template)
templatesLock sync.RWMutex
// beeTemplateExt stores the template extension which will build
beeTemplateExt = []string{"tpl", "html"}
beeTemplateExt = []string{"tpl", "html", "gohtml"}
// beeTemplatePreprocessors stores associations of extension -> preprocessor handler
beeTemplateEngines = map[string]templatePreProcessor{}
beeTemplateFS = defaultFSFunc