Default arguments in macros aren't supported fully
Closed this issue · 0 comments
EvilKarter commented
Hi,
this relates to Issue 69.
I have updated to 0.11.0 and have following twig code
{% macro render(content, title, icon = '', type = '') %}
But I get still this error with the new version.
[error] templates/macros/badge.html.twig: Error: ERROR: Invalid Token
[error] > 1 | {% macro render(content, title, icon = '', type = '') %}
[error] | ^
The error is not shown if my default value ist not an empty string but a space for example
{% macro render(content, title, icon = ' ', type = ' ') %}