-Spectrum: Static sites don’t need JS, interactive sites do -Can get away with just JQuery but JQuery relies on the HTML -Changing the HTML can break functionality unless you track of changes in the HTML done by JQuery necessary = lots of work
Ember? -Spectrum: Static sites don’t need JS, interactive sites do -Can get away with just JQuery but JQuery relies on the HTML -Changing the HTML can break functionality unless you track of changes in the HTML done by JQuery necessary = lots of work
tables Tables Resource -5 core pieces of Ember -Naming convention is CRITICAL -Since Ember does a lot for you, if you don’t name things correctly, it won’t work
ActionController ActiveRecord mySQL/ Postgres $.html $.live $.ajax Resful API Handlebars Ember.js Ember Data Resful API https://speakerdeck.com/ardell/ember-dot-js-rails -Rails MVC is NOT Ember MVC -JS works but harder to ensure data and views match -Ember takes over to help with that
</div> </script> var source = $("#entry-template").html(); var template = Handlebars.compile(source); var context = {title: "My New Post", body: "This is my first post!"} var html = template(context); <div class="entry"> <h1>My New Post</h1> <div class="body"> This is my first post! </div> </div> -Regular HTML with handlebars expression {{ content }} -Add template through script tags -Compile a template in JavaScript with Handlebars.compile -Get HTML by executing the template with a context