1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-23 16:00:51 +00:00
Commit Graph

61 Commits

Author SHA1 Message Date
astaxie
4906b600e3 fix the static url with / problem 2016-02-02 12:43:58 +08:00
bradycao
5757e6548e template.go 的urlfor Func注释有误
template.go 的urlfor Func注释有误
2016-01-19 10:14:16 +08:00
astaxie
f925bb9058 golint all the files 2016-01-18 00:18:21 +08:00
astaxie
90d1349665 fix typo 2016-01-17 23:48:17 +08:00
astaxie
d1bba02958 refact beego config 2015-12-09 23:35:04 +08:00
astaxie
bcb1db256d golint templatefunc 2015-09-08 23:41:41 +08:00
astaxie
44bd3beb5e golint happy with template 2015-09-08 23:29:58 +08:00
astaxie
61570ac2f7 make golint happy with controller.go 2015-09-08 10:43:42 +08:00
astaxie
284dfc0843 move the template related fun to template.go 2015-09-07 19:21:55 +08:00
astaxie
bc1f0ac6fd Merge pull request #1298 from wulove/develop
全局变量AutoRender为false时,run时不再编译模版;针对开发模式下,每个请求渲染模版时支持单独编译当前请求相关模版
2015-08-23 22:13:15 +08:00
wulove
38ddb61199 files is []string, use len(files)==0 2015-08-21 10:32:53 +08:00
Sergey Shcherbina
d4e15c0bd0 Added MapGet template func 2015-08-17 00:08:02 +05:00
wulove
877b5c233e 增加编译模版函数BuildTemplate可变参数,使之支持单个或多个模版的编译,同时针对开发模式,每个请求只编译当前请求相关模版
增加编译模版函数BuildTemplate可变参数,使之支持单个或多个模版的编译,同时针对开发模式,每个请求只编译当前请求相关模版,不再每次请求都编译全部模版
2015-08-06 10:09:34 +08:00
Black.Lee
18659e16ba add compare_not/not_nil methods for template 2015-01-05 16:38:57 +08:00
astaxie
a144769515 update the documents & comments 2014-08-18 16:41:43 +08:00
astaxie
fefd8ddb5b beego: update licence& fix #669 2014-07-03 23:40:21 +08:00
astaxie
0f170a80da update the comments fix #658 2014-06-25 10:39:37 +08:00
Michael
a673a85d4a added tests config/json_test that test missing key usecases. created a template function to fetch AppConfig values 2014-05-30 23:48:23 -05:00
astaxie
c188cbbcb4 update all files License 2014-05-17 02:26:50 +08:00
asta.xie
2f4acf46c6 modify the template file 2014-03-27 08:49:57 +08:00
傅小黑
6cb3f588c7 fix comments typo in beego package/ 2013-12-22 15:09:33 +08:00
傅小黑
ff18ae2562 add api comments in file memzipfile.go,reload.go,router.go,template.go and templatefunc.go, fix spelling error GetInitListner as GetInitListener. 2013-12-21 13:19:24 +08:00
astaxie
7c3d1d3402 fix type HasTemplateEXt to HasTemplateExt 2013-12-19 19:52:01 +08:00
astaxie
19119e99f7 move utils to utils libs & func move to templatefunc 2013-12-12 22:25:08 +08:00
odiel
1611476288 Update template.go
Adding assets_js, assets_css template functions
2013-12-06 10:36:56 -05:00
Francois
a5b5ae899c Update template.go
We can specify "TemplateLeft" and "TemplateRight" but they did not work as these two changes are required.
2013-11-12 20:22:42 +02:00
astaxie
9446563e5b add util func to get the url fix #282
UrlFor(endpoint string, values ...string) string
2013-11-10 23:05:07 +08:00
astaxie
c6167ef184 fix #260 2013-10-30 23:02:53 +08:00
astaxie
4bcbc588fc fix #260 2013-10-29 23:11:23 +08:00
astaxie
5f4fe6d868 fix #260 2013-10-29 23:05:48 +08:00
slene
7131dec3af add go1.2 template funcs eq, ge, gt, le, lt, ne to beego 2013-10-29 22:35:04 +08:00
smithfox
bed0fe2218 fix #217 2013-09-26 18:33:01 +08:00
astaxie
0476da503e improve template 2013-09-13 17:41:31 +08:00
astaxie
943fe971f1 support template 2013-09-13 13:57:40 +08:00
astaxie
55fe3ba52f update tempalte's regexp 2013-09-12 18:20:29 +08:00
astaxie
de2dd6e070 update template's testcase 2013-09-12 17:32:11 +08:00
astaxie
ffb347a2bb support nest template 2013-09-12 17:20:32 +08:00
astaxie
f502f84423 fix #189 2013-09-12 13:44:24 +08:00
astaxie
fd677c45aa fixed 2013-08-20 14:20:38 +08:00
astaxie
0b74db64eb fix typo for templateLeft 2013-08-19 13:02:18 +08:00
astaxie
4f538e7fd2 fix #163
you can set the delimiter like this

beego.TemplateLeft="{#"
beego.TemplateRight="#}"

or can set the config file like app.ini

templateleft={#
templateright=#}
2013-08-19 10:41:09 +08:00
miraclesu
9e1d5036f7 Add renderform template function 2013-08-10 16:33:46 +08:00
miraclesu
6fbdbaae80 Refactor template 2013-08-01 11:57:29 +08:00
astaxie
259617f68d remove markdown 2013-07-25 16:40:37 +08:00
astaxie
ab38c2f8e6 add EnableGzip support & delete if views not exist 2013-04-21 00:49:48 +08:00
astaxie
69f40ad18a add some useful function
1. Router
2. SetSession/GetSession/DelSession
3. RenderString
4. str2html/htmlquote/htmlunquote
5. move the template Function to util.go
2013-04-03 23:37:59 +08:00
astaxie
e467a6ed91 fix err 2013-03-21 21:47:19 +08:00
astaxie
d0e171c801 add exist 2013-03-21 21:45:48 +08:00
astaxie
3d47cd0a40 add just wheather the view is a dir 2013-03-21 20:46:54 +08:00
Unknown
63d8881f4d add func Html2str() 2013-03-21 01:21:04 -04:00