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:
@ -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
|
||||
|
Reference in New Issue
Block a user