Этот коммит содержится в:
=Corey Hulen
2016-03-14 16:07:58 -07:00
родитель ea3f25924e
Коммит 36b17bf99d
36 изменённых файлов: 1791 добавлений и 211 удалений

Просмотреть файл

@@ -23,7 +23,16 @@ type HTMLTemplate struct {
}
func InitHTML() {
templatesDir := FindDir("templates")
InitHTMLWithDir("templates")
}
func InitHTMLWithDir(dir string) {
if htmlTemplates != nil {
return
}
templatesDir := FindDir(dir)
l4g.Debug(T("api.api.init.parsing_templates.debug"), templatesDir)
var err error
if htmlTemplates, err = template.ParseGlob(templatesDir + "*.html"); err != nil {