@first already working? If so how?


Afaik meteor 1.2 introduced @first but when I try to use it I’m getting an error. I’ve been thinking I can do something like

{{each data}}

{{#if @first}}



It has introduced @index so it is up to you to decide if the current index is the first/last. To do that, you could create a helper that compares the index to the count to resolve last and one that compares index to 0 to see if it is the first.