because that’s sexy One stop shopping (No external dependancies) Focused on No need to manipulate the DOM (... for most cases) Basically Knockout.JS on steroids Thursday, December 6, 12
What is a template? DOM handled internally Bling Function ($) Needed Services provide common functions You get this from jQuery (usually) Two-Way Data Binding You made your bed... Strong direction in usage patterns Fundamentally agnostic Dependency management (sort of) That’s what Require.JS is for Localization ... No, really, what’s a template? Internationalization Fuck you, this election is rigged. IE9+ Only (IE8 with a little help) Hah! Take that! Templates cannot be precompiled Require.JS + EJS solves this 78k minified 30.6k minified (Zepto) Thursday, December 6, 12
nature allows more third party optimizations Both focus on “data-on-wire” and crud, backbone provides helpers if you use rails style endpoints. Depends on how much control you want to give your framework Thursday, December 6, 12
be divided into 5 basic parts Modules Container for services, filters, directives. Directives <jesus serious=”yes”>Define your own grammar!</jesus> Services So I hear you want to create some common logic Filters {{ goosebumps | ermagerd }} Controllers This view really should do something Thursday, December 6, 12
useful for wiring up a backend. (awe.sm APIs anyone?) Very hard to fit on a keynote slide Great for providing singletons to your entire application Lazy creation (per injector) Thursday, December 6, 12
Also very difficult to fit on a slide (See next for example) Basically a controller that is created by a tag Lets you keep the content too! Thursday, December 6, 12
filters for translating currency, pluralization, etc. Filters can be created using rule sets common across various number and word types (zero, one, many, etc) Me and the docs on this: TL;DR, RTFM. Thursday, December 6, 12
in. It’s robust (See: SHIT THAT’S A LONG ASS MANUAL) Unit testing Also built in. Same tools. If you want reports, get them yourself I’ve never used it (See previous TL;DR RTFM) Thursday, December 6, 12