diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2019-10-26 14:11:19 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2019-10-26 14:17:22 -0400 |
| commit | 1c1f0f5be4436a6454e17e166f0e950ff30b48c3 (patch) | |
| tree | 2b1cd8f7e063345235a35d11a93706f7773dd6a3 /template.go | |
| parent | 3dc820699130f73dd086469f1a385b60164ead33 (diff) | |
Refactor context naming to reduce confusion
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'template.go')
| -rw-r--r-- | template.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/template.go b/template.go index df7d604f..d6452b7f 100644 --- a/template.go +++ b/template.go @@ -55,7 +55,7 @@ func (t *tplate) toGoTemplate(g *gomplate) (tmpl *template.Template, err error) } tmpl.Option("missingkey=error") // the "tmpl" funcs get added here because they need access to the root template and context - addTmplFuncs(g.funcMap, g.rootTemplate, g.context) + addTmplFuncs(g.funcMap, g.rootTemplate, g.tmplctx) tmpl.Funcs(g.funcMap) tmpl.Delims(g.leftDelim, g.rightDelim) _, err = tmpl.Parse(t.contents) |
