Closed alexQueue closed 10 years ago
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 :
ul
each App.things
li {{_view.contentIndex}}
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:
each list as |item index|
= index
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.