mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-17 00:30:55 +00:00
This commit adds support for return values in partials. This means that you can now do this and similar: {{ $v := add . 42 }} {{ return $v }} Partials without a `return` statement will be rendered as before. This works for both `partial` and `partialCached`. Fixes #5783 |
||
---|---|---|
.. | ||
cast | ||
collections | ||
compare | ||
crypto | ||
data | ||
encoding | ||
fmt | ||
hugo | ||
images | ||
inflect | ||
internal | ||
lang | ||
math | ||
os | ||
partials | ||
path | ||
reflect | ||
resources | ||
safe | ||
site | ||
strings | ||
templates | ||
time | ||
tplimpl | ||
transform | ||
urls | ||
template.go | ||
template_info.go | ||
template_test.go |