IssueRaiser

Passing data to includes

Twig supports sending data to includes, like so: ``` {% include 'include.twig' with { name: 'whatever' } %} ``` This is really useful in many cases, like re-using a block in different contexts, with different behaviour / data. Have anyone looked into adding support for this?

Posted by sjelfull on Oct 2, 2015, 1:48 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.5,000 issues0 comments

support (Other)

Passing data to includes

sjelfullOct 2, 2015, 1:48 AM

Twig supports sending data to includes, like so: ``` {% include 'include.twig' with { name: 'whatever' } %} ``` This is really useful in many cases, like re-using a block in different contexts, with different behaviour / data. Have anyone looked into adding support for this?

Comments (0)

No comments yet. Start the discussion.

Comment on this issue