diff --git a/beego.go b/beego.go index 31ec6d9b..df2c7d6d 100644 --- a/beego.go +++ b/beego.go @@ -48,8 +48,8 @@ var ( EnableXSRF bool XSRFExpire int CopyRequestBody bool //When in raw application, You want to the reqeustbody - TemplatLeft string - TemplatRight string + TemplateLeft string + TemplateRight string ) func init() { @@ -80,8 +80,8 @@ func init() { ErrorsShow = true XSRFKEY = "beegoxsrf" XSRFExpire = 60 - TemplatLeft = "{{" - TemplatRight = "}}" + TemplateLeft = "{{" + TemplateRight = "}}" ParseConfig() runtime.GOMAXPROCS(runtime.NumCPU()) } diff --git a/config.go b/config.go index bcdf0316..07a2962e 100644 --- a/config.go +++ b/config.go @@ -199,10 +199,10 @@ func ParseConfig() (err error) { XSRFExpire = expire } if tplleft := AppConfig.String("templateleft"); tplleft != "" { - TemplatLeft = tplleft + TemplateLeft = tplleft } if tplright := AppConfig.String("templateright"); tplright != "" { - TemplatRight = tplright + TemplateRight = tplright } } return nil diff --git a/template.go b/template.go index 328f241e..2f133e7e 100644 --- a/template.go +++ b/template.go @@ -112,7 +112,7 @@ func BuildTemplate(dir string) error { return err } 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 }