diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2022-05-29 09:05:36 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-29 09:05:36 -0700 |
| commit | 9ae9a6a5182342f775383646058807222947f483 (patch) | |
| tree | 14914504ad80adb66cdd31c196db42c5a34b46b5 /template.go | |
| parent | 170593638bb7cf10f5ec8309112d775059f40e02 (diff) | |
| parent | 82ded80fcef1965ab5357a89d201811436b5d8d7 (diff) | |
Merge pull request #1409 from hairyhenderson/stop-passing-config-in-context
Stop passing the config in the context
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") |
