"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tpl/partials/partials.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).

partials.go  (hugo-0.80.0):partials.go  (hugo-0.81.0)
skipping to change at line 158 skipping to change at line 158
if ctx, ok := context.(*contextWrapper); ok { if ctx, ok := context.(*contextWrapper); ok {
result = ctx.Result result = ctx.Result
} else if _, ok := templ.(*texttemplate.Template); ok { } else if _, ok := templ.(*texttemplate.Template); ok {
result = w.(fmt.Stringer).String() result = w.(fmt.Stringer).String()
} else { } else {
result = template.HTML(w.(fmt.Stringer).String()) result = template.HTML(w.(fmt.Stringer).String())
} }
if ns.deps.Metrics != nil { if ns.deps.Metrics != nil {
ns.deps.Metrics.TrackValue(n, result) ns.deps.Metrics.TrackValue(templ.Name(), result)
} }
return result, nil return result, nil
} }
// IncludeCached executes and caches partial templates. The cache is created wi th name+variants as the key. // IncludeCached executes and caches partial templates. The cache is created wi th name+variants as the key.
func (ns *Namespace) IncludeCached(name string, context interface{}, variants .. .interface{}) (interface{}, error) { func (ns *Namespace) IncludeCached(name string, context interface{}, variants .. .interface{}) (interface{}, error) {
key, err := createKey(name, variants...) key, err := createKey(name, variants...)
if err != nil { if err != nil {
return nil, err return nil, err
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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