]> git.maquefel.me Git - brevno-suite/hugo/commit
tpl: Add templates.Current
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 8 Apr 2025 16:41:06 +0000 (18:41 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 9 Apr 2025 18:15:40 +0000 (20:15 +0200)
commitd4c6dd16b1ba77df77c6964e4fe04338a8f2e01f
tree68582b8d6cc818fc48cb32f2b3543767409cbacb
parentaf0602c3435b8e8ffb9dbc4f165d72b78ecad599
tpl: Add templates.Current

This commit also

* Unexport all internal state in TemplateInfo.
* Make the dispatcher keys used for passing context.Context into uint8 from string to save memory allocations.

Co-authored-by: Joe Mooring <joe@mooring.com>
Updates #13571
13 files changed:
common/hugo/hugo.go
hugolib/page__content.go
hugolib/page__per_output.go
hugolib/site_render.go
resources/resource_factories/create/create.go
tpl/partials/partials.go
tpl/template.go
tpl/templates/templates.go
tpl/templates/templates_integration_test.go
tpl/tplimpl/templates.go
tpl/tplimpl/templatestore.go
tpl/tplimpl/templatestore_integration_test.go
tpl/tplimpl/templatetransform.go