Files
hugo/tpl/tplimpl
Bjørn Erik Pedersen a55640de8e tpl: Allow the partial template func to return any type
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
2019-04-02 10:30:24 +02:00
..
2019-03-23 20:15:06 +01:00
2019-03-23 18:51:22 +01:00
2018-12-28 10:41:46 +01:00
2019-03-23 18:51:22 +01:00
2019-03-23 18:51:22 +01:00