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
6cb3f588
authored
2013-12-22 15:09:33 +0800
by
傅小黑
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix comments typo in beego package/
1 parent
8b0929b4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
controller.go
template.go
templatefunc.go
controller.go
View file @
6cb3f58
...
...
@@ -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 @
6cb3f58
...
...
@@ -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 @
6cb3f58
...
...
@@ -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
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