I have a marionette composite view called IndexView(). It is tied to a handlebars template called index.html.
Before I continue I will note that I understand that I can simply render an item view tied to the composite view to output each model in the collection. I will be doing this but I want to ask my question for my understanding.
I fetch a collection from a url "/api/users"
and get a list like this
[{"name": "John Doe", "age": 30 }, {"name":"Jane Doe", "age": 31}]
in my users controller I have the code
var usersCollection = new UsersCollection();
App.contentRegion.show(new IndexView({collection: usersCollection}));
usersCollection.fetch();
How do I iterate through the collection in the template?
e.g.
{{#each ????}}
<li> {{name}} {{age}} </li>
{{/each}}
What would go where the question marks are? From the marionette documentation for an ItemView it would be items. What would it be for a CollectionView or a CompositeView?