From dce09837b929f42103cedce92d345a0588d0f784 Mon Sep 17 00:00:00 2001 From: astaxie Date: Thu, 8 May 2014 10:51:29 +0800 Subject: [PATCH] fix the typo --- controller.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controller.go b/controller.go index 4dd6709a..13acbbff 100644 --- a/controller.go +++ b/controller.go @@ -46,7 +46,7 @@ type Controller struct { CruSession session.SessionStore XSRFExpire int AppController interface{} - EnableReander bool + EnableRender bool } // ControllerInterface is an interface to uniform all controller handler. @@ -75,7 +75,7 @@ func (c *Controller) Init(ctx *context.Context, controllerName, actionName strin c.Ctx = ctx c.TplExt = "tpl" c.AppController = app - c.EnableReander = true + c.EnableRender = true c.Data = ctx.Input.Data } @@ -126,7 +126,7 @@ func (c *Controller) Options() { // Render sends the response with rendered template bytes as text/html type. func (c *Controller) Render() error { - if !c.EnableReander { + if !c.EnableRender { return nil } rb, err := c.RenderBytes()