Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
6cb3f588
Commit
6cb3f588
authored
Dec 22, 2013
by
傅小黑
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix comments typo in beego package/
parent
8b0929b4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
controller.go
controller.go
+2
-2
template.go
template.go
+2
-2
templatefunc.go
templatefunc.go
+1
-1
No files found.
controller.go
View file @
6cb3f588
...
...
@@ -241,7 +241,7 @@ func (c *Controller) ServeJson(encoding ...bool) {
c
.
Ctx
.
Output
.
Json
(
c
.
Data
[
"json"
],
hasIndent
,
hasencoding
)
}
// ServeJson sends a jsonp response.
// ServeJson
p
sends a jsonp response.
func
(
c
*
Controller
)
ServeJsonp
()
{
var
hasIndent
bool
if
RunMode
==
"prod"
{
...
...
@@ -252,7 +252,7 @@ func (c *Controller) ServeJsonp() {
c
.
Ctx
.
Output
.
Jsonp
(
c
.
Data
[
"jsonp"
],
hasIndent
)
}
// Serve
Json
sends xml response.
// Serve
Xml
sends xml response.
func
(
c
*
Controller
)
ServeXml
()
{
var
hasIndent
bool
if
RunMode
==
"prod"
{
...
...
template.go
View file @
6cb3f588
...
...
@@ -17,7 +17,7 @@ import (
var
(
beegoTplFuncMap
template
.
FuncMap
// beego template caching map an
s
supported template file extensions.
// beego template caching map an
d
supported template file extensions.
BeeTemplates
map
[
string
]
*
template
.
Template
BeeTemplateExt
[]
string
)
...
...
@@ -89,7 +89,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error {
return
nil
}
// return this path
ha
s supported template extension of beego or not.
// return this path
contain
s supported template extension of beego or not.
func
HasTemplateExt
(
paths
string
)
bool
{
for
_
,
v
:=
range
BeeTemplateExt
{
if
strings
.
HasSuffix
(
paths
,
"."
+
v
)
{
...
...
templatefunc.go
View file @
6cb3f588
...
...
@@ -203,7 +203,7 @@ func AssetsJs(src string) template.HTML {
return
template
.
HTML
(
text
)
}
// returns stylesheet link tag with s
tr
string.
// returns stylesheet link tag with s
rc
string.
func
AssetsCss
(
src
string
)
template
.
HTML
{
text
:=
string
(
src
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment