Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
dce09837
authored
2014-05-08 10:51:29 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix the typo
1 parent
3b9a4041
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
controller.go
controller.go
View file @
dce0983
...
...
@@ -46,7 +46,7 @@ type Controller struct {
CruSession
session
.
SessionStore
XSRFExpire
int
AppController
interface
{}
EnableRe
ander
bool
EnableRe
nder
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
.
EnableRe
a
nder
=
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
.
EnableRe
a
nder
{
if
!
c
.
EnableRender
{
return
nil
}
rb
,
err
:=
c
.
RenderBytes
()
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment