summaryrefslogtreecommitdiffstats
path: root/tpl/tplimpl/templates.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/tplimpl/templates.go')
-rw-r--r--tpl/tplimpl/templates.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/tpl/tplimpl/templates.go b/tpl/tplimpl/templates.go
index f3f98f622..19de48e38 100644
--- a/tpl/tplimpl/templates.go
+++ b/tpl/tplimpl/templates.go
@@ -44,7 +44,16 @@ var embeddedTemplatesAliases = map[string][]string{
"_shortcodes/twitter.html": {"_shortcodes/tweet.html"},
}
-func (t *templateNamespace) parseTemplate(ti *TemplInfo) error {
+func (s *TemplateStore) parseTemplate(ti *TemplInfo) error {
+ err := s.tns.doParseTemplate(ti)
+ if err != nil {
+ return s.addFileContext(ti, "parse of template failed", err)
+ }
+
+ return err
+}
+
+func (t *templateNamespace) doParseTemplate(ti *TemplInfo) error {
if !ti.noBaseOf || ti.category == CategoryBaseof {
// Delay parsing until we have the base template.
return nil