From 9a0aa5fdbe3ef35b7cc1dd756f54f1b219225bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 26 Mar 2017 11:45:12 +0200 Subject: hugolib: Wrap pageOutput create in sync.Once --- tpl/tplimpl/template.go | 1 + 1 file changed, 1 insertion(+) (limited to 'tpl') 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) } -- cgit v1.2.3