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

20 Commits

Author SHA1 Message Date
odiel
0bdd400fe7 Update utils.go
Adding Assets functions for the template, to generate HTML tags for JS and CSS
2013-12-06 10:36:12 -05: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
0fb7d4babb add UrlFor function but still improve 2013-11-08 18:20:08 +08:00
astaxie
93e1206d60 xsrf change to randstr and cookie set to security cookie 2013-09-25 23:05:53 +08:00
astaxie
19862725f7 support template 2013-09-12 15:24:08 +08:00
slene
e788fb7239 add an DateParse function, parse datestring to time.Time use php date format 2013-09-11 23:47:01 +08:00
miraclesu
a37b2bdfb0 Support custom label for renderform 2013-08-12 06:54:36 +08:00
miraclesu
459b97858c renderform ignore struct field if form tag value is '-' 2013-08-11 22:42:35 +08:00
miraclesu
5c859466ef ignore struct field if form tag value is '-' 2013-08-11 22:21:31 +08:00
miraclesu
9e1d5036f7 Add renderform template function 2013-08-10 16:33:46 +08:00
miraclesu
e47b2b677d Update ParserForm for new form tag style 2013-08-10 11:42:25 +08:00
astaxie
e47a147c3b serverJson Supoort 中文编码 2013-08-06 16:37:41 +08:00
miraclesu
fe7ecc377a Refactor ParseForm 2013-07-28 13:51:01 +08:00
miraclesu
d31ac49ead Merge branch 'master' of https://github.com/astaxie/beego into form 2013-07-26 16:29:22 +08:00
miraclesu
f552338822 Add ParseForm function 2013-07-25 22:25:12 +08:00
astaxie
259617f68d remove markdown 2013-07-25 16:40:37 +08:00
astaxie
d5ddd0a9dd support user define function
+//Add("/user",&UserController{})
+//Add("/api/list",&RestController{},"*:ListFood")
+//Add("/api/create",&RestController{},"post:CreateFood")
+//Add("/api/update",&RestController{},"put:UpdateFood")
+//Add("/api/delete",&RestController{},"delete:DeleteFood")
+//Add("/api",&RestController{},"get,post:ApiFunc")
+//Add("/simple",&SimpleController{},"get:GetFunc;post:PostFunc")
2013-07-25 15:17:09 +08:00
astaxie
3578bb3287 fix bug substr 2013-06-24 23:24:33 +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
xiemengjun
f593c1f3fd init framwork 2012-12-15 23:53:19 +08:00