Closed bluemoehre closed 7 years ago
I noticed line breaks inside the parameters object will break the embed function.
Will work:
{% embed 'skeletons/sidebarBox.twig' with { 'class': 'relatedContents' } %} … {% endembed %}
Won't work:
TwigException: Unable to parse 'embed 'skeletons/sidebarBox.twig' with { 'class': 'relatedContents' }'
This behavior is different to include and require where line breaks cause no trouble.
include
require
This is just the gulp plugin. The bug is in twig.js, it seems to be fixed already. https://github.com/twigjs/twig.js/issues/386
I suggest to close this issue.
I noticed line breaks inside the parameters object will break the embed function.
Will work:
Won't work:
This behavior is different to
include
andrequire
where line breaks cause no trouble.