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

Question: Are subexpressions supported? #13

Open
bpj opened this issue Oct 9, 2019 · 1 comment
Open

Question: Are subexpressions supported? #13

bpj opened this issue Oct 9, 2019 · 1 comment

Comments

@bpj
Copy link

bpj commented Oct 9, 2019

I can't get subexpressions to work; get "unknown token" all the time. Are they not supported?

@aaminoff
Copy link

I was just wondering the same thing. I defined a helper called "eq", in the template I said

{{#if (eq user.username "alex_aminoff") }}

got

Oops: Unexpected token '(eq' at /usr/local/lib/perl5/site_perl/Text/Xslate/Syntax/Handlebars.pm line 289.

Subexpressions with parentheses appear to be defined by the Handlebars.js spec, about 3/4 of the way down this page:

https://handlebarsjs.com/expressions.html

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

No branches or pull requests

2 participants