Volt
Hi,
the following function call results in exception ("Syntax error, unexpected token }}"):
{{ my_func({'attr': {'class': 'fancy', 'foo': 'bar'}} ) }}
After adding a space it works:
{{ my_func({'attr': {'class': 'fancy', 'foo': 'bar'} } ) }}
Could be a file encoding problem (same error can happen with Twig as well).
Can you try it with another file?
No, the function params, what is a nested array/object in this case, has the }} closing tag. I guess it is reserved for volt. It is not an encoding issue.
True you are right, it's a parsing issue.
Thank you for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please feel free to either reopen this issue or open a new one. We will be more than happy to look at it again! You can read more here: https://blog.phalconphp.com/post/github-closing-old-issues