-
-
Notifications
You must be signed in to change notification settings - Fork 281
Closed
Description
The Latte documentation page for include
tag does not mention include block
syntax.
It would be beneficial if it does, as one could not use dynamic name resolution w/o the block
argument.
To be specific, this for example does not work:
{include $dynamicName from './subtemplate.latte', varName: $varValue}
But this does:
{include block $dynamicName from './subtemplate.latte', varName: $varValue}
I understand the difference between these (now :-) ) - the former includes a template while the latter includes a block from a template.
I believe having the difference mentioned within the docs will improve understanding of the behaviour.
More on this topic to be found in related nette forum thread.
Metadata
Metadata
Assignees
Labels
No labels