SproutCore 2; Lean, Mean, and back to HTML
Posted by Dion Almaer 11 months ago on library mvc sproutcore

Today we got a sneak peak at the next version of SproutCore via a developer preview. One of the biggest differences that jumped out to me was the change from coding everything through JS APIs to being able to do much more via HTML, CSS, and templates (handle bars):
If you’re an existing SproutCore developer, the biggest change you’ll notice is that SproutCore 2.0 is currently 100% HTML and CSS; no deeply-nested JavaScript objects with embedded layout hashes. We’ve also left behind pages and panes. If you’ve been using SC.TemplateView in SproutCore 1.5, you already know how to use Handlebars. Just insert your templates inside tags in your document body, and we’ll automatically convert them to views and insert them into the DOM.
To get a feel for things, check out the getting started guide but then quickly take a peak at the current Hello World du jour for MVC frameworks: A Basic Todo List. You can see the balance of the HTML and JS which contains the model.
Very interesting to see SC change its form with v2, and see it side by side with Backbone and the like.
What do you think about the changes?