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