background preloader

Babkbone.js

Facebook Twitter

Re-using Backbone.js Models on the server with Node.js and Socket.io to build real-time apps | &yet | the blog. Quick intro, the hype and awesomeness that is Node Node.js is pretty freakin' awesome, yes. But it's also been hyped up more than an Apple gadget. As pointed out by Eric Florenzano on his blog a LOT of the original excitement of server-side JS was due to the ability to share code between client and server. However, instead, the first thing everybody did is start porting all the existing tools and frameworks to node. Faster and better, perhaps, but it's still largely the same 'ol thing. Where's the paradigm shift? Basically, Node.js runs V8, the same JS engine as Chrome, and as such, it has fairly decent ECMA Script 5 support. So, that is what makes underscore.js so magical. So what kind of stuff would we want to share between client and server?

Enter Backbone.js A few months ago I got really into Backbone and wrote this introductory post about it that made the frontpage of HN. Var _ = require('underscore')._, backbone = require('backbone'); So what?! State! Unifying Application State. Backbone.js. Documentcloud/backbone - GitHub. Backrub | Massages for your Backbone Views. Backrub is Handlebars {{templates}} beautifully integrated into Backbone Views. The main inspiration for the project is the use of Handlebars to power the new TemplateView in SproutCore. Define your page structure entirely in Backrub template and let the template create instance of your different Views. No more code to handle the events from the model to refresh the page, Backrub does it for you. Copyright (c) 2010 Julien Guimont julien.guimont@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Juggy/backrub - GitHub.