mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 21:41:29 +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
|
return icontent, nil
|
||||||
} else {
|
} else {
|
||||||
if c.TplNames == "" {
|
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" {
|
if RunMode == "dev" {
|
||||||
BuildTemplate(ViewsPath)
|
BuildTemplate(ViewsPath)
|
||||||
|
Loading…
Reference in New Issue
Block a user