summaryrefslogtreecommitdiffstats
path: root/tpl/partials/partials.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/partials/partials.go')
-rw-r--r--tpl/partials/partials.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tpl/partials/partials.go b/tpl/partials/partials.go
index 6f3ba2d13..e03bf471f 100644
--- a/tpl/partials/partials.go
+++ b/tpl/partials/partials.go
@@ -105,11 +105,11 @@ func (ns *Namespace) Include(name string, contextList ...interface{}) (interface
}
n := "partials/" + name
- templ, found := ns.deps.Tmpl.Lookup(n)
+ templ, found := ns.deps.Tmpl().Lookup(n)
if !found {
// For legacy reasons.
- templ, found = ns.deps.Tmpl.Lookup(n + ".html")
+ templ, found = ns.deps.Tmpl().Lookup(n + ".html")
}
if !found {
@@ -139,7 +139,7 @@ func (ns *Namespace) Include(name string, contextList ...interface{}) (interface
w = b
}
- if err := ns.deps.Tmpl.Execute(templ, w, context); err != nil {
+ if err := ns.deps.Tmpl().Execute(templ, w, context); err != nil {
return "", err
}