Files
hugo/tpl
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
..
2018-12-27 10:08:44 +01:00
2018-11-30 08:56:30 +01:00
2018-11-30 08:56:30 +01:00
2018-11-30 08:56:30 +01:00
2018-12-06 14:57:56 +01:00
2018-11-30 08:56:30 +01:00
2018-11-30 08:56:30 +01:00
2018-11-09 08:54:08 +01:00
2018-11-30 08:56:30 +01:00
2019-03-24 16:14:51 +01:00
2018-11-30 08:56:30 +01:00
2018-12-07 23:29:37 +01:00
2018-11-30 08:56:30 +01:00
2018-12-06 14:37:25 +01:00
2018-11-30 08:56:30 +01:00
2018-11-30 08:56:30 +01:00
2018-11-30 08:56:30 +01:00