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
d905e736
authored
2013-04-20 14:52:20 -0400
by
Unknown
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
git://github.com/astaxie/beego
2 parents
3fe4465f
ab38c2f8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
docs/zh/Quickstart.md
template.go
docs/zh/Quickstart.md
View file @
d905e73
...
...
@@ -892,6 +892,10 @@ beego中带有很多可配置的参数,我们来一一认识一下它们,这
文件上传默认内存缓存大小,默认值是
`1 << 26`
(64M)
*
EnableGzip
是否开启gzip支持,默认为false不支持gzip,一旦开启了gzip,那么在模板输出的内容会进行gzip或者zlib压缩,根据用户的Accept-Encoding来判断。
## 第三方应用集成
beego支持第三方应用的集成,用户可以自定义
`http.Handler`
,用户可以通过如下方式进行注册路由:
...
...
template.go
View file @
d905e73
...
...
@@ -94,7 +94,7 @@ func AddTemplateExt(ext string) {
func
BuildTemplate
(
dir
string
)
error
{
if
_
,
err
:=
os
.
Stat
(
dir
);
err
!=
nil
{
if
os
.
IsNotExist
(
err
)
{
return
err
return
nil
}
else
{
return
errors
.
New
(
"dir open err"
)
}
...
...
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