ChapterÂ 11.Â The Spine Library
I created Spine while writing this book because I couldnât find a client-side MVC framework that quite suited my needs. The library attempts to enshrine many of the best practices proposed in this book, and indeed the bookâs example application, Holla, is built using Spine.
Unlike widget-based libraries such as Cappuccino and SproutCore, Spine doesnât make any decisions about how you display data to users. The emphasis is on flexibility and simplicity. Spine gives you the bare bones and gets out of your way so you get on with the fun stuffâdeveloping awesome applications.
Spine includes a class library with inheritance support;
Spine.Class; an events module,
Spine.Events; an ORM,
Spine.Model; and a controller class,
Spine.Controller. Anything else youâll need, like
templating support or a DOM library, is up to you, so use what youâre most
familiar with. Having said that, Spine includes specific support for jQuery
and Zepto.js libraries, which complement it excellently.