Esa-Matti Suuronen

I write code and jump

Mastering Nested Views in Backbone.js

During the last year or so I have been building quite a few apps on top of Backbone.js. The reason for choosing Backbone.js was the fact it’s fairly low level. It does not get in my way when I want to integrate some random crappy jQuery plugings or swap Ajax backend to Websockets in to my apps etc. Also it doesn’t isolate me to inside some framework wonderland jail. I really had to learn how to work with the DOM and how to arrange my code. This is good in the since it has given me good foundations how things generally work if I ever want to venture into some other frameworks.

But there is a downside to all this low levelness. With certain aspects you are really left alone by the framework. For me the hardest part was how to handle nested views.