1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-04 03:00:18 +00:00

add util func to get the url fix #282

UrlFor(endpoint string, values ...string) string
This commit is contained in:
astaxie
2013-11-10 23:05:07 +08:00
parent 167ad203cb
commit 9446563e5b
6 changed files with 157 additions and 2 deletions

View File

@ -43,6 +43,8 @@ func init() {
beegoTplFuncMap["le"] = le // <=
beegoTplFuncMap["lt"] = lt // <
beegoTplFuncMap["ne"] = ne // !=
beegoTplFuncMap["urlfor"] = UrlFor // !=
}
// AddFuncMap let user to register a func in the template