The Meteor Spacebar docs say "one can use parentheses to express the evaluation order of nested expressions" and give this example:
{{capitalize (getSummary post)}}
However, I get a error on build anytime I use parenthesis:
=> Errors prevented startup:
While building the application: client/templates/test.html:6: Expected identifier, number, string, boolean, or null ... {{capitalize (getSummary post)}} ...
This error does not occur when the parenthesis are removed; of course then the expressions aren't evaluated properly.
For context, this is my intention (using handlebar-helpers and meteor-roles)
{{#if $or (isInRole "someRole") (isInRole "someOtherRole")}}
<p>approved!</p>
{{/if}}
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments