Skip to content

Latte include docs could mention block syntax #954

@helvete

Description

@helvete

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions