cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

Volt

Open michanismus opened this issue 12 years ago • 4 comments

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'} } ) }}

michanismus avatar Aug 17 '14 15:08 michanismus

Could be a file encoding problem (same error can happen with Twig as well).

Can you try it with another file?

ebuildy avatar Aug 17 '14 15:08 ebuildy

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.

michanismus avatar Aug 17 '14 16:08 michanismus

True you are right, it's a parsing issue.

ebuildy avatar Aug 18 '14 11:08 ebuildy

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

stale[bot] avatar Aug 30 '18 07:08 stale[bot]