diff --git a/beego.go b/beego.go index ec4a4881..a6132bc7 100644 --- a/beego.go +++ b/beego.go @@ -71,12 +71,10 @@ func Run() { go GlobalSessions.GC() } - if AutoRender { - err := BuildTemplate(ViewsPath) - if err != nil { - if RunMode == "dev" { - Warn(err) - } + err := BuildTemplate(ViewsPath) + if err != nil { + if RunMode == "dev" { + Warn(err) } }