This is similar to issue #2719
Not all JavaScript expressions work in a template expression. This is unexpected particularly because the documentation says in the Syntax section:
All template expressions are "just javascript."
Here's an example using valid JavaScript that causes a syntax error:
<div>{ ['Hello', 'world!'].join(' ') }</div>
Chrome, but I'm assuming everywhere.
Riot 4.0.3.
How would you tag this issue?
It seems like either the documentation should be improved, or templates should support all valid JavaScript syntax.
Thank you, it was a compiler issue. It got fixed in Riot.[email protected]
Most helpful comment
Thank you, it was a compiler issue. It got fixed in Riot.[email protected]