From 485d89d5c849765905987375b9d6c50b12b3db39 Mon Sep 17 00:00:00 2001 From: astaxie Date: Tue, 30 Jul 2013 22:45:50 +0800 Subject: [PATCH] tpl tolower --- controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller.go b/controller.go index 9dd737f9..2783c46f 100644 --- a/controller.go +++ b/controller.go @@ -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)