Bug when parsing helpers with negative integers ? #149

sunng87 opened this Issue Apr 8, 2013 · 2 comments


None yet

3 participants

sunng87 commented Apr 8, 2013

Using the 0.11.00 handlebars.java, it dumps when I have an negative integer in my helper, whenever as hash or parameter.

{{#ifequals foo -1}} ... {{/ifequals}}

Got syntax error: found: '-'.

Is this designed or if there is any workaround to avoid this issue ? Thanks.

jknack commented Apr 10, 2013

I saw this before and I didn't change it bc handlebars.js doesn't allow it neither.

@jknack jknack closed this Apr 19, 2013
jlowcs commented Jul 1, 2014

It has been fixed in handlebars.js
(just tested it)

@jknack jknack added enhancement and removed wontfix labels Aug 31, 2014
@jknack jknack modified the milestone: 1.3.2, 0.12.0 Aug 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment