0b74db64 by astaxie

fix typo for templateLeft

1 parent f2222ba3
...@@ -48,8 +48,8 @@ var ( ...@@ -48,8 +48,8 @@ var (
48 EnableXSRF bool 48 EnableXSRF bool
49 XSRFExpire int 49 XSRFExpire int
50 CopyRequestBody bool //When in raw application, You want to the reqeustbody 50 CopyRequestBody bool //When in raw application, You want to the reqeustbody
51 TemplatLeft string 51 TemplateLeft string
52 TemplatRight string 52 TemplateRight string
53 ) 53 )
54 54
55 func init() { 55 func init() {
...@@ -80,8 +80,8 @@ func init() { ...@@ -80,8 +80,8 @@ func init() {
80 ErrorsShow = true 80 ErrorsShow = true
81 XSRFKEY = "beegoxsrf" 81 XSRFKEY = "beegoxsrf"
82 XSRFExpire = 60 82 XSRFExpire = 60
83 TemplatLeft = "{{" 83 TemplateLeft = "{{"
84 TemplatRight = "}}" 84 TemplateRight = "}}"
85 ParseConfig() 85 ParseConfig()
86 runtime.GOMAXPROCS(runtime.NumCPU()) 86 runtime.GOMAXPROCS(runtime.NumCPU())
87 } 87 }
......
...@@ -199,10 +199,10 @@ func ParseConfig() (err error) { ...@@ -199,10 +199,10 @@ func ParseConfig() (err error) {
199 XSRFExpire = expire 199 XSRFExpire = expire
200 } 200 }
201 if tplleft := AppConfig.String("templateleft"); tplleft != "" { 201 if tplleft := AppConfig.String("templateleft"); tplleft != "" {
202 TemplatLeft = tplleft 202 TemplateLeft = tplleft
203 } 203 }
204 if tplright := AppConfig.String("templateright"); tplright != "" { 204 if tplright := AppConfig.String("templateright"); tplright != "" {
205 TemplatRight = tplright 205 TemplateRight = tplright
206 } 206 }
207 } 207 }
208 return nil 208 return nil
......
...@@ -112,7 +112,7 @@ func BuildTemplate(dir string) error { ...@@ -112,7 +112,7 @@ func BuildTemplate(dir string) error {
112 return err 112 return err
113 } 113 }
114 for k, v := range self.files { 114 for k, v := range self.files {
115 BeeTemplates[k] = template.Must(template.New("beegoTemplate"+k).Funcs(beegoTplFuncMap).ParseFiles(v...)).Delims(TemplatLeft, TemplatRight) 115 BeeTemplates[k] = template.Must(template.New("beegoTemplate"+k).Funcs(beegoTplFuncMap).ParseFiles(v...)).Delims(TemplateLeft, TemplateRight)
116 } 116 }
117 return nil 117 return nil
118 } 118 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!