1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 22:00:55 +00:00
Commit Graph

100 Commits

Author SHA1 Message Date
JessonChan
0d54bbff02 make staticcheck happy 2019-01-22 19:09:57 +08:00
astaxie
8152ade1b6
Merge pull request #3419 from xpzouying/close_fs_when_is_not_nil
Close fs when is not nil
2018-11-30 16:57:49 +08:00
Ying Zou
a5a2471f2c close fs only when fs open without error
panic when close nil filesystem
2018-11-28 08:55:20 +08:00
Ying Zou
fab7c6b6d0 better format
- add comments for public function
- format import order in admin.go
- better format for NewControllerRegister in router.go
2018-11-26 23:19:05 +08:00
Viktor Vassilyev
9ac4928113 refactor(Template): a detailed description of the error 2018-11-07 20:20:10 +06:00
Viktor Vassilyev
aa6d0f9f0b fix(Template): correct check error 2018-11-06 21:40:43 +06:00
Viktor Vassilyev
68b0bd98fd fix(Template): error handling when reading files 2018-11-06 20:41:05 +06:00
Viktor Vassilyev
ca1b96f986 feat(Template): use interface http.FileSystem 2018-11-06 20:06:21 +06:00
Viktor Vassilyev
2f00ad1602 fix(Template): close open file 2018-11-05 22:51:20 +06:00
Viktor Vassilyev
f740b71ded fix(Template): remove duplicate check open/exists 2018-11-05 21:08:03 +06:00
Viktor Vassilyev
7aae58a543 feat(Template): create interface FileSystem for to create custom fs 2018-11-05 21:05:19 +06:00
aruhi
51cc6fc257
Update template.go 2018-04-20 19:42:50 +09:00
BorisBorshevsky
df37739c7d fix golint comments 2017-11-25 19:18:37 +02:00
zhufanmao
4bc4f77c29 return template build error 2017-09-02 17:55:26 +08:00
astaxie
ea3d0690cf golint 2017-04-29 09:13:28 +08:00
astaxie
aa8f7bc146 fix ineffectual 2017-04-28 22:36:28 +08:00
astaxie
d3f3956def Merge pull request #2574 from extrlibs/master
Fix the following template reference
2017-04-19 21:18:26 +08:00
Orefa
0cd31a247f fix Template nesting problem 2017-04-19 07:47:05 +08:00
Sergey Lanzman
37c1ffc57a add go simple support 2017-03-17 20:22:20 +02:00
Sergey Lanzman
3e37b97549 temple parse error write in log as trace. change to error 2017-03-14 12:55:40 +02:00
astaxie
206f736819 Merge pull request #2496 from eyalpost/develop
Don't panic during AddViewPath if adding the same path twice
2017-03-14 12:54:48 +08:00
Eyal Post
24d4a27842 Don't panic during AddViewPath if adding the same path twice 2017-03-13 08:46:57 +02:00
astaxie
1d49a4bcbd Merge pull request #2417 from eyalpost/develop
support for multiple view paths
2017-02-13 12:37:17 +08:00
Eyal Post
fc2c0f4fba Don't allow AddViewPath after beego run 2017-02-11 22:00:30 +02:00
Eyal Post
dfa74faf43 support for multiple view paths 2017-02-07 22:18:33 +02:00
卜木
e32d173b0d fix the bug to prevent rewrite t
the t have paresed in line 212.
2017-01-14 15:03:49 +08:00
Maxgis
5d1e60b468 reflection 2016-07-28 11:56:55 +08:00
Mark Mindenhall
24b8870637 move paren to new line 2016-05-23 21:43:18 -06:00
Mark Mindenhall
153d76e200 More flexible support for template engines 2016-05-10 22:54:33 -06:00
JessonChan
8ec6dd93cf make template execution be expected 2016-04-01 18:10:00 +08:00
astaxie
ccc84dd8eb Merge pull request #1762 from saturn4er/htmlEngines
Implemented possibility to add custom template engines
2016-03-30 16:43:39 +08:00
saturn4er
adaa4ab929 Fix index out of range if there is no file extension 2016-03-29 17:15:43 +03:00
JessonChan
98dfecfd8a change beego log function to logs function 2016-03-24 17:39:29 +08:00
saturn4er
66423f6935 Fix formatting with gofmt
Rename BeeTemplateEngines->beeTemplateEngines.  Create templateHandler function type
Fix var name in comment BeeTemplatePreprocessors -> beeTemplatePreprocessors
Rename TemplateI -> TemplateRenderer
2016-03-11 08:40:54 +02:00
saturn4er
9ee9f81861 Add functions passing to template engine callback 2016-03-07 09:37:47 +02:00
saturn4er
10ddb06782 Implemented possibility to add custom template engines 2016-03-07 08:45:49 +02:00
JessonChan
f5adec31c6 improve the template reader function 2016-03-04 14:49:16 +08:00
JessonChan
1f46c1d231 add template read lock when dev mode 2016-03-04 12:00:43 +08:00
JessonChan
3da28535fe lock the templates map when goroutie update the map 2016-02-25 17:37:28 +08:00
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