Backbone.js and Handlebars.js
I have been wanting to play around with backbone for a while and finally was asked to start researching it at work. So I created a little sample page and figured I should share with the world! :)
I left out having actual events in this example (will probably dedicate an entire post for it) and there was one difficult part that gave me some trouble, other than that it was pretty easy to get going. The troubling part is how handlebars loops through an array of objects. Backbone does not setup its collection objects the way handlebars expects it. So to get it to work I had to add the [] as the node name.
Read through the code and look at the comments. I really look forward to working with this framework some more.
Happy Coding!
1 Notes/ Hide
-
gregorynicholas likes this
-
kyleondata posted this
