Latte 3 does not allow {define} inside {embed}
JanTvrdik opened this issue · 1 comments
JanTvrdik commented
Version: 3.0.0
The following template used to work in Latte 2.x, but in Latte 3 result in error "Unexpected content inside {embed} tags". Using {block}
instead of {define}
seems to work.
https://github.com/nette/latte/blob/v3.0.0/src/Latte/Essential/Nodes/EmbedNode.php#L59
{define layout}
<div class="layout-content">
{include content}
</div>
{/define}
{embed layout}
{define content}
Hello World
{/define}
{/embed}
dg commented
I think this is correct, inside the embed should not be define.
(In Latte 2, everything can be inside embed because it is not possible to disable it.)