1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 12:10:55 +00:00
This commit is contained in:
astaxie 2016-01-25 21:08:29 +08:00
parent 87650ce8bc
commit 7e3ad5bcb0

View File

@ -68,14 +68,12 @@ func registerSession() error {
}
func registerTemplate() error {
if BConfig.WebConfig.AutoRender {
if err := BuildTemplate(BConfig.WebConfig.ViewsPath); err != nil {
if BConfig.RunMode == DEV {
Warn(err)
}
return err
}
}
return nil
}