I am following David Sulc's tutorial on Marionette. http://davidsulc.com/blog/2012/04/15/a-simple-backbone-marionette-tutorial/ and in order to learn extending over it.
Now lets say each cat has a name, rank as well as Category
AngryCat = Backbone.Model.extend({
urlRoot: '/api/cats',
defaults: {
name: "New Cat Name",
category: "Red Cat"
}
});
Now I want to make a composite view like this:
Category 1: Red Cat (03 Cats)
Cat 1
Cat 2
Cat 3
Category 2: Blue Cat (02 Cats)
Cat X
Cat Y
How can I achieve this. Please help!