docs
docs copied to clipboard
Latte include docs could mention `block` syntax
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.
Feel free to send PR.
@helvete Actually, I wonder why you didn't add that to the documentation? What's the barrier?
Hell I could have. The reason I haven't done that is that I totally forgot about this.
I can see the documentation has already been updated, so thank you!