Commit 46641ef3 authored by astaxie's avatar astaxie

fix the typo

parent b2a69f50
...@@ -46,7 +46,7 @@ type Controller struct { ...@@ -46,7 +46,7 @@ type Controller struct {
CruSession session.SessionStore CruSession session.SessionStore
XSRFExpire int XSRFExpire int
AppController interface{} AppController interface{}
EnableReander bool EnableRender bool
} }
// ControllerInterface is an interface to uniform all controller handler. // ControllerInterface is an interface to uniform all controller handler.
...@@ -75,7 +75,7 @@ func (c *Controller) Init(ctx *context.Context, controllerName, actionName strin ...@@ -75,7 +75,7 @@ func (c *Controller) Init(ctx *context.Context, controllerName, actionName strin
c.Ctx = ctx c.Ctx = ctx
c.TplExt = "tpl" c.TplExt = "tpl"
c.AppController = app c.AppController = app
c.EnableReander = true c.EnableRender = true
c.Data = ctx.Input.Data c.Data = ctx.Input.Data
} }
...@@ -126,7 +126,7 @@ func (c *Controller) Options() { ...@@ -126,7 +126,7 @@ func (c *Controller) Options() {
// Render sends the response with rendered template bytes as text/html type. // Render sends the response with rendered template bytes as text/html type.
func (c *Controller) Render() error { func (c *Controller) Render() error {
if !c.EnableReander { if !c.EnableRender {
return nil return nil
} }
rb, err := c.RenderBytes() rb, err := c.RenderBytes()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment