tpl tolower
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -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) | ... | ... |
-
Please register or sign in to post a comment