1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-24 12:44:13 +00:00

tpl tolower

This commit is contained in:
astaxie 2013-07-30 22:45:50 +08:00
parent a997ca746f
commit 485d89d5c8

View File

@ -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)