I have a question:
Assuming I have a 'users' property in the controller which contains a list of user objects, then in the template, I would like to do something like: (currentUser is just a property in the ApplicationController available in any template)
each u in users if u.id is currentUser.id renderThisBlock
Obviously 'if' helper can't work like that, it seems like Ember doesn't support block helpers so i'm not sure how this could be achieved,
please note that I need the condition to be per iteration, otherwise I would expose a method in the controller that returns boolean.
Thanks.