Skip to content

bengler/pebbles-backbone.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  #...

About

Use pebbles.js with your Backbone models

Resources

Stars

Watchers

Forks

Packages

No packages published