codelog
Capsule: Realtime web app framework for Backbone, Socket.io and Node.js

thechangelog: The adoption of Backbone.js seems to be heating up. Last week we brought you Capt, a command line tool for creating Backbone projects. This week, we introduce Capsule from Happy.js creator Henrik Joreteg. Capsule aims to let you share view and model code across client and server, with realtime view updates powered by Socket.io. Capsule extends Backbone.Model and Backbone.View with Capsule.Model and Capsule.View respectively:

exports.AppModel = Capsule.Model.extend({
  type: 'app',
  initialize: function (spec) {
    this.register();
    this.addChildCollection('members', exports.Members);
    this.addChildModel('activityLog', exports.ActivityLogPage);
  }
});

Check the README for server and client-side setups and other usage.

Caveats and contributing

It should be noted that Capsule currently assumes you want to use ICanHaz.js and Mustache as your templating layer. If you have other tastes, perhaps you could fork the project and contribute?

[Source on GitHub]

    1. 29 notesTimestamp: Tuesday 2011/04/26 22:56:50Via: thechangelog
    1. dai reblogged this from thechangelog
    2. do-nothing reblogged this from haru012
    3. codelog reblogged this from thechangelog and added:
      The adoption of Backbone.js seems to be heating up. Last week we brought you Capt, a command line tool for creating...
    4. haru012 reblogged this from thechangelog
    5. thechangelog posted this