hugolib: Wrap pageOutput create in sync.Once

This commit is contained in:
Bjørn Erik Pedersen
2017-03-26 11:45:12 +02:00
parent 0aaf3c56a5
commit 9a0aa5fdbe
4 changed files with 32 additions and 6 deletions

View File

@@ -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)
}