From d4610a93133514459fbe2dec2976996b9c626001 Mon Sep 17 00:00:00 2001 From: astaxie Date: Tue, 7 May 2013 15:42:57 +0800 Subject: [PATCH] fix layout --- controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controller.go b/controller.go index 1992d051..55319fde 100644 --- a/controller.go +++ b/controller.go @@ -160,6 +160,7 @@ func (c *Controller) RenderBytes() ([]byte, error) { BeeTemplates[subdir].ExecuteTemplate(newbytes, file, c.Data) tplcontent, _ := ioutil.ReadAll(newbytes) c.Data["LayoutContent"] = template.HTML(string(tplcontent)) + subdir = path.Dir(c.Layout) _, file = path.Split(c.Layout) ibytes := bytes.NewBufferString("") err := BeeTemplates[subdir].ExecuteTemplate(ibytes, file, c.Data)