A talk on using Backbone together with Handlebars
HandlebonesBuilding an App with Handlebarsand BackbonePatrick mulder@mulpatMunich Ember Meetup May 2014
View Slide
Backgroundrender UI‘s withKey-Value Observation
ViewsStateUpdatesServerSyncChangesUI EventsDOMTemplatesMV*Keys ValuesHandlebars
Handlebarsmvc_editorTo be released at github, inspired by Andrei Kashcha
App DependenciesScaffoldingAnd project structure
Simple controls1 way data binding =Change in state -> re-render view
Advanced editing2 way data binding =• Change in model -> change in view• Change in input -> change model
Advanced Views• Start with lists or longer inputs• E.g. the colors
Nested views
References• http://thinkingonthinking.com/two-way-databinding-with-stickit/• http://thinkingonthinking.com/key-value-pairs/• https://speakerdeck.com/mulderp/backbone-and-handlebars• https://github.com/FormidableLabs/handlebones• http://handlebarsjs.com/block_helpers.html