mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-05 08:27:18 -04:00
Add template helper functions
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ func formatToken(format string, token string) (string, error) {
|
||||
v := make(map[string]interface{})
|
||||
v["text"] = token
|
||||
|
||||
tmpl, err := template.New(format).Parse(format)
|
||||
tmpl, err := template.New(format).Funcs(TemplateFuncMap).Parse(format)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user