Skip to content

Commit e8eb6fe

Browse files
author
Sam Ban
committed
shortcut "xml" => "xml_encode"
1 parent 7bbc593 commit e8eb6fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

template.go

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ var fmap = template.FuncMap{
7373
"xml_array": xmlArray,
7474
"xml_decode": xmlDecode,
7575
"xml_encode": xmlEncode,
76+
"xml": xmlEncode,
7677
}
7778

7879
// RegisterFunc registers a new template func to the template parser

0 commit comments

Comments
 (0)