From 82ded80fcef1965ab5357a89d201811436b5d8d7 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sun, 29 May 2022 11:49:57 -0400 Subject: Stop passing the config in the context Signed-off-by: Dave Henderson --- template.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'template.go') 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") -- cgit v1.2.3