summaryrefslogtreecommitdiff
path: root/tmpl/tmpl.go
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl/tmpl.go')
-rw-r--r--tmpl/tmpl.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tmpl/tmpl.go b/tmpl/tmpl.go
index cf57cee1..e0c46c20 100644
--- a/tmpl/tmpl.go
+++ b/tmpl/tmpl.go
@@ -43,10 +43,10 @@ func (t *Template) inline(name, in string, ctx interface{}) (string, error) {
}
// Exec - execute (render) a template - this is the built-in `template` action, except with output...
-func (t *Template) Exec(name string, context ...interface{}) (string, error) {
+func (t *Template) Exec(name string, tmplcontext ...interface{}) (string, error) {
ctx := t.defaultCtx
- if len(context) == 1 {
- ctx = context[0]
+ if len(tmplcontext) == 1 {
+ ctx = tmplcontext[0]
}
tmpl := t.root.Lookup(name)
if tmpl == nil {