node package manager

pebbles-backbone

pebbles-backbone.js

Make your Backbone models and collections Pebbles-powered

Build Status

Prerequisites

Node.js 0.8 or higher

Getting started

Install module dependencies

$ npm install

Run tests

$ npm test

Usage examples

Vanilla JavaScript

var pebblify = require("pebbles-backbone").pebblify;
var BlogPost = Backbone.Model.extend({
  //... 
});
 
pebblify(BlogPost).with({
   namespace: "post",
   connector: grove.connector
});

CoffeeScript

pebblify = require("pebbles-backbone").pebblify
 
class BlogPost extends Backbone.Model
  pebblify(this).with
     namespace: "post"
     connector: grove.connector
 
  #...