Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't pass the equal sign in helper parameters #2157

Closed
dandv opened this issue May 19, 2014 · 1 comment
Closed

Can't pass the equal sign in helper parameters #2157

dandv opened this issue May 19, 2014 · 1 comment

Comments

@dandv
Copy link
Contributor

@dandv dandv commented May 19, 2014

Pre-Spacebars, I used to have a compare helper that took three parameters:

Handlebars.registerHelper('compare', function (lvalue, operator, rvalue) {

With Spacebars, when attempting to call

{{#if compare foo "!=" "bar"}}

I get the error

foo.html:38: Expected space
...#if compare foo "!=" "bar"}}{{...
                        ^

I've tried to backslash-escape the = sign, but that didn't help. Other characters (>, <, !) are passed correctly.

@glasser glasser added the Blaze label May 22, 2014
@dgreensp dgreensp closed this in e4ebeda May 27, 2014
@dgreensp
Copy link
Contributor

@dgreensp dgreensp commented May 27, 2014

D'oh. Just fixed it on devel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.