mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 19:40:55 +00:00
tpl tolower
This commit is contained in:
parent
a997ca746f
commit
485d89d5c8
@ -182,7 +182,7 @@ func (c *Controller) RenderBytes() ([]byte, error) {
|
||||
return icontent, nil
|
||||
} else {
|
||||
if c.TplNames == "" {
|
||||
c.TplNames = c.ChildName + "/" + c.Ctx.Request.Method + "." + c.TplExt
|
||||
c.TplNames = c.ChildName + "/" + strings.ToLower(c.Ctx.Request.Method) + "." + c.TplExt
|
||||
}
|
||||
if RunMode == "dev" {
|
||||
BuildTemplate(ViewsPath)
|
||||
|
Loading…
Reference in New Issue
Block a user