-
Notifications
You must be signed in to change notification settings - Fork 81
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
Getting index within Each Helper #161
Comments
I'm having the same issue, were you able to get this to work ? |
Are you sure you're on the latest Emblem? This seems to work: |
So i did some digging and it turns out the problem come from a bug in the ember-template-compiler module that is used by ember-cli (via broccoli-emblem-compiler). I found a solution to my problem (see below), thanks for your answer, it helped a lot ;) If anyone else is having this issue, here is what i found :
|
Doesn't seem like a bug/missing feature for this repo. |
Thanks @cbellino for digging in :) |
In case anyone runs into it today and finds this like I did:
|
This works in Handlebars:
This fails in Emblem:
I get this error:
Uncaught Error: Emblem syntax error, line 1: Expected BeginStatement or DEDENT but "=" found. =@index
Perhaps this is not an issue, but I thought Emblem was intended to behave functionally like Handlebars.
The text was updated successfully, but these errors were encountered: