summaryrefslogtreecommitdiffstats
path: root/tpl/partials
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-11-27 13:42:36 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-12-18 11:44:40 +0100
commite625088ef5a970388ad50e464e87db56b358dac4 (patch)
treef7b26dec1f3695411558d05ca7d0995817a42250 /tpl/partials
parent67f3aa72cf9aaf3d6e447fa6bc12de704d46adf7 (diff)
Add render template hooks for links and images
This commit also * revises the change detection for templates used by content files in server mode. * Adds a Page.RenderString method Fixes #6545 Fixes #4663 Closes #6043
Diffstat (limited to 'tpl/partials')
-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 bfc3a82d3..6f3ba2d13 100644
--- a/tpl/partials/partials.go
+++ b/tpl/partials/partials.go
@@ -116,9 +116,9 @@ func (ns *Namespace) Include(name string, contextList ...interface{}) (interface
return "", fmt.Errorf("partial %q not found", name)
}
- var info tpl.Info
- if ip, ok := templ.(tpl.TemplateInfoProvider); ok {
- info = ip.TemplateInfo()
+ var info tpl.ParseInfo
+ if ip, ok := templ.(tpl.Info); ok {
+ info = ip.ParseInfo()
}
var w io.Writer