pebbles-backbone

Use pebbles.js with your Backbone models

npm install pebbles-backbone
22 downloads in the last week
97 downloads in the last month

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

  #...
npm loves you