Closed dave closed 8 years ago
However, this works:
// main.twig
{% set vars = {"foo": "bar"} %}
{% include "fragment.twig" with vars %}
Thanks! It looks like parsing the include tags doesn't allow for map literals, that will definitely have to change.
I'm happy to say that this is now implemented so I'll close this issue. Please open another issue if you run into any problems. Thanks!
The "with" syntax detailed here that is used to inject variables into an included template doesn't seem to work:
The error is: