fix the typo
Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -46,7 +46,7 @@ type Controller struct { | ... | @@ -46,7 +46,7 @@ type Controller struct { |
| 46 | CruSession session.SessionStore | 46 | CruSession session.SessionStore |
| 47 | XSRFExpire int | 47 | XSRFExpire int |
| 48 | AppController interface{} | 48 | AppController interface{} |
| 49 | EnableReander bool | 49 | EnableRender bool |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | // ControllerInterface is an interface to uniform all controller handler. | 52 | // 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 |
| 75 | c.Ctx = ctx | 75 | c.Ctx = ctx |
| 76 | c.TplExt = "tpl" | 76 | c.TplExt = "tpl" |
| 77 | c.AppController = app | 77 | c.AppController = app |
| 78 | c.EnableReander = true | 78 | c.EnableRender = true |
| 79 | c.Data = ctx.Input.Data | 79 | c.Data = ctx.Input.Data |
| 80 | } | 80 | } |
| 81 | 81 | ||
| ... | @@ -126,7 +126,7 @@ func (c *Controller) Options() { | ... | @@ -126,7 +126,7 @@ func (c *Controller) Options() { |
| 126 | 126 | ||
| 127 | // Render sends the response with rendered template bytes as text/html type. | 127 | // Render sends the response with rendered template bytes as text/html type. |
| 128 | func (c *Controller) Render() error { | 128 | func (c *Controller) Render() error { |
| 129 | if !c.EnableReander { | 129 | if !c.EnableRender { |
| 130 | return nil | 130 | return nil |
| 131 | } | 131 | } |
| 132 | rb, err := c.RenderBytes() | 132 | rb, err := c.RenderBytes() | ... | ... |
-
Please register or sign in to post a comment