summaryrefslogtreecommitdiff
path: root/template.go
diff options
context:
space:
mode:
Diffstat (limited to 'template.go')
-rw-r--r--template.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/template.go b/template.go
index b2a91032..e161a800 100644
--- a/template.go
+++ b/template.go
@@ -53,6 +53,8 @@ func copyFuncMap(funcMap template.FuncMap) template.FuncMap {
return newFuncMap
}
+// toGoTemplate - parses t.contents as a Go template named t.name with the
+// configured funcMap, delimiters, and nested templates.
func (t *tplate) toGoTemplate(ctx context.Context, g *gomplate) (tmpl *template.Template, err error) {
tmpl = template.New(t.name)
tmpl.Option("missingkey=error")