Upgrade to Pro — share decks privately, control downloads, hide ads and more …

From Backbone to Thorax

mulderp
February 20, 2014

From Backbone to Thorax

An overview on the MV* pattern, Handlebars and resulting in Thorax.

mulderp

February 20, 2014
Tweet

More Decks by mulderp

Other Decks in Programming

Transcript

  1. MV*

  2. itemFilter: function (model) { if (active) { return model.get('genre') ===

    active; } else { return true; } } Supports filtering�
  3. events� var listView = new Thorax.View({ el: "#movies", events: {

    collection: { 'all': function(ev) { console.log(ev) }, filter: function(ev) { } } } }
  4. |-js! |! |---libs! |-----backbone! |-----impress! |-----masonry! |-----jquery! |-----jquery-fileupload! |-----jquery-ui! |-----require!

    |-----underscore! |! |---modules! |! |! |-templates! |---dashboard! |---directory! |---shared! development production HTTP Loading JS Modules�