90d1349665
fix typo
2016-01-17 23:48:17 +08:00
4823a0f114
remove the dead code
2015-09-17 23:47:26 +08:00
bcb1db256d
golint templatefunc
2015-09-08 23:41:41 +08:00
c11740b647
make golint happy router.go
2015-09-08 22:01:13 +08:00
61570ac2f7
make golint happy with controller.go
2015-09-08 10:43:42 +08:00
9038cdfaae
Merge pull request #1343 from onealtang/oneal-dev
...
always use server's locale to parse date
2015-09-04 21:32:18 +08:00
adca455804
always use server's locale to parse date
...
When parsing the date without time, it's always using UTC date, which is
unexpected. If we want to use UTC date, it's recommend to set the
server's timezone as UTC, and keep the code flexible.
2015-09-02 15:50:40 +08:00
d91840779a
Update templatefunc.go
2015-08-17 01:18:29 +05:00
d4e15c0bd0
Added MapGet template func
2015-08-17 00:08:02 +05:00
0c31c2d689
Added support to parse slices of ints and strings in ParseForm func
2015-02-22 22:13:06 +05:00
2a0f87e810
Merge pull request #1010 from BlackLee/master
...
add compare_not/not_nil methods for template
2015-02-14 20:31:18 +08:00
18659e16ba
add compare_not/not_nil methods for template
2015-01-05 16:38:57 +08:00
e34f8479bb
Add all type support for UrlFor’s params
2014-12-17 15:52:48 +08:00
7743eecfd4
support #761
...
type Test struct {
Date time.Time `form:"Date, 2006-01-02"`
Save bool `form:"Save"`
}
2014-11-04 16:19:46 +08:00
710f5b6234
fix the test fun for pull request 873
2014-10-20 22:23:29 +08:00
6c9ff81fc1
fix: if user didn't set id or class, then it won't be displayed in HTML code
2014-10-20 18:59:46 +08:00
1b3e7de463
add new feature to 'renderform' function, user could add HTML id and class now
2014-10-20 17:49:16 +08:00
a144769515
update the documents & comments
2014-08-18 16:41:43 +08:00
ea6982fcea
beego: template fund when the start> len(bt)
2014-08-05 23:52:06 +08:00
fefd8ddb5b
beego: update licence& fix #669
2014-07-03 23:40:21 +08:00
34572193c6
Adds html5 input types to valid intput types of RenderForm.
2014-06-30 10:38:32 +02:00
4994d36b66
templateform.RenderForm now renders textarea
...
When RenderForm encounters a field with the structTag `form` value
type `textarea` it renders an actual <textarea> html tag.
2014-06-29 20:49:56 +02:00
a991b9dcde
Removes unused FormType map from templatefunc
2014-06-29 20:49:35 +02:00
3fe9e6a28a
extract func parseFormTag
from templatefunc.RenderForm
...
Extracted a func `parseFormTag` that takes a reflect.StructField
and returns the different positional parts of the `form` structTag
with default values as documented in
http://beego.me/docs/mvc/view/view.md#renderform
This makes RenderForm shorter and makes it possible to test the
parsing separately.
2014-06-29 20:49:08 +02:00
0f170a80da
update the comments fix #658
2014-06-25 10:39:37 +08:00
bdc01f52a0
Merge pull request #626 from mvpmvh/michael
...
Michael
2014-05-31 14:25:40 +08:00
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
33ad6c1370
beego: remove app funciont & fix #590
...
config := tls.Config{
ClientAuth: tls.RequireAndVerifyClientCert,
Certificates: []tls.Certificate{cert},
ClientCAs: pool,
}
config.Rand = rand.Reader
beego.BeeApp.Server. TLSConfig = &config
2014-05-20 17:28:06 +08:00
c5c806b58e
beego: XSRF support Controller level fix #610
...
default value is true when you Enable Global XSRF, also can control in
the prepare function to change the value.
2014-05-17 02:26:51 +08:00
c188cbbcb4
update all files License
2014-05-17 02:26:50 +08:00
6cb3f588c7
fix comments typo in beego package/
2013-12-22 15:09:33 +08:00
2c868a9557
make datePatterns hide
2013-12-21 20:44:34 +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
19119e99f7
move utils to utils libs & func move to templatefunc
2013-12-12 22:25:08 +08:00