From 7e3ad5bcb010beb9c8a01fbdb475c655f9f0ebe2 Mon Sep 17 00:00:00 2001 From: astaxie Date: Mon, 25 Jan 2016 21:08:29 +0800 Subject: [PATCH] fix #1585 --- hooks.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/hooks.go b/hooks.go index 78abf8ef..59b10b32 100644 --- a/hooks.go +++ b/hooks.go @@ -68,13 +68,11 @@ 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 + if err := BuildTemplate(BConfig.WebConfig.ViewsPath); err != nil { + if BConfig.RunMode == DEV { + Warn(err) } + return err } return nil }