I see that both share almost the same properties & functions so what is the main difference for these two?
9
votes
2 Answers
14
votes
That question is addressed here: https://github.com/marionettejs/backbone.marionette/wiki/Use-cases-for-the-different-views
In short, you'll want to use CompositeView if you want to wrap a template around the collection (ex: a list with a header and footer). CollectionView doesn't know how to render a template.
0
votes
http://blog.marionettejs.com/2016/08/23/marionette-v3/index.html
Version 2.x had many different kinds of views: View, ItemView, LayoutView, CollectionView, CompositeView.
In version 3 ItemView, and LayoutView were ‘merged’ into View, and CompositeView was deprecated for removal in v4. Now we have only View and CollectionView.
and layouts were removed too