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

add compare_not/not_nil methods for template

This commit is contained in:
Black.Lee
2015-01-05 16:38:57 +08:00
parent 07c628c7e9
commit 18659e16ba
3 changed files with 21 additions and 1 deletions

View File

@ -42,6 +42,9 @@ func init() {
beegoTplFuncMap["dateformat"] = DateFormat
beegoTplFuncMap["date"] = Date
beegoTplFuncMap["compare"] = Compare
beegoTplFuncMap["compare_not"] = CompareNot
beegoTplFuncMap["not_nil"] = NotNil
beegoTplFuncMap["not_null"] = NotNil
beegoTplFuncMap["substr"] = Substr
beegoTplFuncMap["html2str"] = Html2str
beegoTplFuncMap["str2html"] = Str2html