485d89d5 by astaxie

tpl tolower

1 parent a997ca74
...@@ -182,7 +182,7 @@ func (c *Controller) RenderBytes() ([]byte, error) { ...@@ -182,7 +182,7 @@ func (c *Controller) RenderBytes() ([]byte, error) {
182 return icontent, nil 182 return icontent, nil
183 } else { 183 } else {
184 if c.TplNames == "" { 184 if c.TplNames == "" {
185 c.TplNames = c.ChildName + "/" + c.Ctx.Request.Method + "." + c.TplExt 185 c.TplNames = c.ChildName + "/" + strings.ToLower(c.Ctx.Request.Method) + "." + c.TplExt
186 } 186 }
187 if RunMode == "dev" { 187 if RunMode == "dev" {
188 BuildTemplate(ViewsPath) 188 BuildTemplate(ViewsPath)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!