mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 20:40:54 +00:00
fix typo for templateLeft
This commit is contained in:
parent
f2222ba3c6
commit
0b74db64eb
8
beego.go
8
beego.go
@ -48,8 +48,8 @@ var (
|
|||||||
EnableXSRF bool
|
EnableXSRF bool
|
||||||
XSRFExpire int
|
XSRFExpire int
|
||||||
CopyRequestBody bool //When in raw application, You want to the reqeustbody
|
CopyRequestBody bool //When in raw application, You want to the reqeustbody
|
||||||
TemplatLeft string
|
TemplateLeft string
|
||||||
TemplatRight string
|
TemplateRight string
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@ -80,8 +80,8 @@ func init() {
|
|||||||
ErrorsShow = true
|
ErrorsShow = true
|
||||||
XSRFKEY = "beegoxsrf"
|
XSRFKEY = "beegoxsrf"
|
||||||
XSRFExpire = 60
|
XSRFExpire = 60
|
||||||
TemplatLeft = "{{"
|
TemplateLeft = "{{"
|
||||||
TemplatRight = "}}"
|
TemplateRight = "}}"
|
||||||
ParseConfig()
|
ParseConfig()
|
||||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||||
}
|
}
|
||||||
|
@ -199,10 +199,10 @@ func ParseConfig() (err error) {
|
|||||||
XSRFExpire = expire
|
XSRFExpire = expire
|
||||||
}
|
}
|
||||||
if tplleft := AppConfig.String("templateleft"); tplleft != "" {
|
if tplleft := AppConfig.String("templateleft"); tplleft != "" {
|
||||||
TemplatLeft = tplleft
|
TemplateLeft = tplleft
|
||||||
}
|
}
|
||||||
if tplright := AppConfig.String("templateright"); tplright != "" {
|
if tplright := AppConfig.String("templateright"); tplright != "" {
|
||||||
TemplatRight = tplright
|
TemplateRight = tplright
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
@ -112,7 +112,7 @@ func BuildTemplate(dir string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
for k, v := range self.files {
|
for k, v := range self.files {
|
||||||
BeeTemplates[k] = template.Must(template.New("beegoTemplate"+k).Funcs(beegoTplFuncMap).ParseFiles(v...)).Delims(TemplatLeft, TemplatRight)
|
BeeTemplates[k] = template.Must(template.New("beegoTemplate"+k).Funcs(beegoTplFuncMap).ParseFiles(v...)).Delims(TemplateLeft, TemplateRight)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user