hugo/tpl/partials
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
..
init.go tpl: Allow the partial template func to return any type 2019-04-02 10:30:24 +02:00
init_test.go commands: Show server error info in browser 2018-10-16 22:10:56 +02:00
partials.go tpl: Allow the partial template func to return any type 2019-04-02 10:30:24 +02:00