From 3c1d23bc62c1d0b187477e016e488b31f5dcbfd0 Mon Sep 17 00:00:00 2001 From: astaxie Date: Thu, 19 Sep 2013 23:40:55 +0800 Subject: [PATCH] #207 --- beego.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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) } }