summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-03-26 11:45:12 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-03-27 15:43:56 +0200
commit9a0aa5fdbe3ef35b7cc1dd756f54f1b219225bfc (patch)
treecac18524ff403396098d3b4e7a3cae472d57c51e /tpl
parent0aaf3c56a511c6582db4dbfb28879e964e6f2d92 (diff)
hugolib: Wrap pageOutput create in sync.Once
Diffstat (limited to 'tpl')
-rw-r--r--tpl/tplimpl/template.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go
index 17cbb40f3..545d5994a 100644
--- a/tpl/tplimpl/template.go
+++ b/tpl/tplimpl/template.go
@@ -180,6 +180,7 @@ func (t *GoHTMLTemplate) executeTemplate(context interface{}, w io.Writer, layou
for _, layout := range layouts {
templ := t.Lookup(layout)
if templ == nil {
+ // TODO(bep) output
layout += ".html"
templ = t.Lookup(layout)
}