Parenthesis in Spacebars template helper call throws error

chris

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}}
chris

This is a new feature in 1.1.1; it is not available in 1.1.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Parenthesis in Spacebars template helper call throws error

From Dev

Compare template helper values in Spacebars {{#if}} block

From Dev

Compare template helper values in Spacebars {{#if}} block

From Dev

Using a helper with arguments AS a helper argument in Spacebars

From Dev

Meteor Blaze error with Template Helper

From Dev

meteor spacebars, sending data to the template

From Dev

meteor spacebars, sending data to the template

From Dev

How to call a variadic template helper in anonymous namespace?

From Dev

Meteor Spacebars custom split helper not rendering

From Dev

django template throws NoReverseMatch error

From Dev

django template throws NoReverseMatch error

From Dev

AVAudioEngine inputNode call throws error

From Dev

Custom error template throws fatal error

From Dev

Template.beforeDestroy hook Spacebars/Meteor

From Dev

How to pass an array/objects with spacebars to a meteor template?

From Dev

Return array item by index in a meteor spacebars template

From Dev

meteor display first element of array in template spacebars

From Dev

Why Is Spacebars Template Not Being Completely Rendered?

From Dev

Template.beforeDestroy hook Spacebars/Meteor

From Dev

Exception in template helper: Error: Can't use $ on template instance with no DOM

From Dev

Exception in template helper: Error: Can't use $ on template instance with no DOM

From Dev

How do you call a Rails helper in a HAML template

From Dev

Meteor Spacebars Helpers - Passing another spacebar as helper argument

From Dev

How do I convert Handlebars isEq helper to Spacebars in Meteor?

From Dev

pass current value of spacebars:this as argument to new helper in meteor/blaze

From Dev

Why does a semicolon in ejs template throws error

From Dev

AngularJs template url loading throws CORS error

From Dev

call function without parenthesis

From Dev

Parenthesis in a perl function call

Related Related

  1. 1

    Parenthesis in Spacebars template helper call throws error

  2. 2

    Compare template helper values in Spacebars {{#if}} block

  3. 3

    Compare template helper values in Spacebars {{#if}} block

  4. 4

    Using a helper with arguments AS a helper argument in Spacebars

  5. 5

    Meteor Blaze error with Template Helper

  6. 6

    meteor spacebars, sending data to the template

  7. 7

    meteor spacebars, sending data to the template

  8. 8

    How to call a variadic template helper in anonymous namespace?

  9. 9

    Meteor Spacebars custom split helper not rendering

  10. 10

    django template throws NoReverseMatch error

  11. 11

    django template throws NoReverseMatch error

  12. 12

    AVAudioEngine inputNode call throws error

  13. 13

    Custom error template throws fatal error

  14. 14

    Template.beforeDestroy hook Spacebars/Meteor

  15. 15

    How to pass an array/objects with spacebars to a meteor template?

  16. 16

    Return array item by index in a meteor spacebars template

  17. 17

    meteor display first element of array in template spacebars

  18. 18

    Why Is Spacebars Template Not Being Completely Rendered?

  19. 19

    Template.beforeDestroy hook Spacebars/Meteor

  20. 20

    Exception in template helper: Error: Can't use $ on template instance with no DOM

  21. 21

    Exception in template helper: Error: Can't use $ on template instance with no DOM

  22. 22

    How do you call a Rails helper in a HAML template

  23. 23

    Meteor Spacebars Helpers - Passing another spacebar as helper argument

  24. 24

    How do I convert Handlebars isEq helper to Spacebars in Meteor?

  25. 25

    pass current value of spacebars:this as argument to new helper in meteor/blaze

  26. 26

    Why does a semicolon in ejs template throws error

  27. 27

    AngularJs template url loading throws CORS error

  28. 28

    call function without parenthesis

  29. 29

    Parenthesis in a perl function call

HotTag

Archive