"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tpl/tplimpl/template.go" between
hugo-0.80.0.tar.gz and hugo-0.81.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

template.go  (hugo-0.80.0):template.go  (hugo-0.81.0)
skipping to change at line 601 skipping to change at line 601
err error err error
) )
if !base.IsZero() { if !base.IsZero() {
templ, err = templ.Parse(base.template) templ, err = templ.Parse(base.template)
if err != nil { if err != nil {
return nil, base.errWithFileContext("parse failed ", err) return nil, base.errWithFileContext("parse failed ", err)
} }
} }
templ, err = templ.Parse(overlay.template) templ, err = texttemplate.Must(templ.Clone()).Parse(overlay.templ ate)
if err != nil { if err != nil {
return nil, overlay.errWithFileContext("parse failed", er r) return nil, overlay.errWithFileContext("parse failed", er r)
} }
// The extra lookup is a workaround, see
// * https://github.com/golang/go/issues/16101
// * https://github.com/gohugoio/hugo/issues/2549
// templ = templ.Lookup(templ.Name())
return templ, nil return templ, nil
} }
var ( var (
templ = t.main.prototypeHTMLClone.New(overlay.name) templ = t.main.prototypeHTMLClone.New(overlay.name)
err error err error
) )
if !base.IsZero() { if !base.IsZero() {
templ, err = templ.Parse(base.template) templ, err = templ.Parse(base.template)
 End of changes. 2 change blocks. 
1 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)