diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2022-05-29 11:49:57 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2022-05-29 11:52:46 -0400 |
| commit | 82ded80fcef1965ab5357a89d201811436b5d8d7 (patch) | |
| tree | 14914504ad80adb66cdd31c196db42c5a34b46b5 /template.go | |
| parent | 170593638bb7cf10f5ec8309112d775059f40e02 (diff) | |
Stop passing the config in the context
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'template.go')
| -rw-r--r-- | template.go | 2 |
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") |
