Add function to template
audreylim opened this issue · comments
Audrey commented
Is it possible to add functions to the template generated by ace? http://golang.org/pkg/html/template/#Template.Funcs
Keiji Yoshida commented
Yes, set template.FuncMap
to the ace.Options
's FuncMap
. http://godoc.org/github.com/yosssi/ace#Options
Audrey commented
Thanks!