1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-04 10:00:18 +00:00
you can set the delimiter like this

beego.TemplateLeft="{#"
beego.TemplateRight="#}"

or can set the config file like app.ini

templateleft={#
templateright=#}
This commit is contained in:
astaxie
2013-08-19 10:41:09 +08:00
parent e02f9a9931
commit 4f538e7fd2
3 changed files with 11 additions and 1 deletions

View File

@ -48,6 +48,8 @@ var (
EnableXSRF bool
XSRFExpire int
CopyRequestBody bool //When in raw application, You want to the reqeustbody
TemplatLeft string
TemplatRight string
)
func init() {
@ -78,6 +80,8 @@ func init() {
ErrorsShow = true
XSRFKEY = "beegoxsrf"
XSRFExpire = 60
TemplatLeft = "{{"
TemplatRight = "}}"
ParseConfig()
runtime.GOMAXPROCS(runtime.NumCPU())
}