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

From Backbone to Thorax

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for mulderp mulderp
February 20, 2014

From Backbone to Thorax

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

Avatar for mulderp

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�