fix
This commit is contained in:
parent
790c840f76
commit
1a39c666a3
1 changed files with 1 additions and 1 deletions
2
core.go
2
core.go
|
@ -105,7 +105,7 @@ func (app *App) Run(router *httprouter.Router) {
|
||||||
// check if template engine is enable
|
// check if template engine is enable
|
||||||
TemplateEnableStr := os.Getenv("TEMPLATE_ENABLE")
|
TemplateEnableStr := os.Getenv("TEMPLATE_ENABLE")
|
||||||
if "" == TemplateEnableStr {
|
if "" == TemplateEnableStr {
|
||||||
TemplateEnableStr = 'false'
|
TemplateEnableStr = "false"
|
||||||
}
|
}
|
||||||
TemplateEnable, _ := strconv.ParseBool(TemplateEnableStr)
|
TemplateEnable, _ := strconv.ParseBool(TemplateEnableStr)
|
||||||
// if enabled,
|
// if enabled,
|
||||||
|
|
Loading…
Reference in a new issue