New creates a new empty template with the provided tag and built-in template functions.
(tag string)
| 69 | // New creates a new empty template with the provided tag and built-in |
| 70 | // template functions. |
| 71 | func New(tag string) *template.Template { |
| 72 | return template.New(tag).Funcs(basicFunctions) |
| 73 | } |
| 74 | |
| 75 | // padWithSpace adds whitespace to the input if the input is non-empty |
| 76 | func padWithSpace(source string, prefix, suffix int) string { |
no outgoing calls