backbone-hoodie adapter
Use this adapter to keep maintain sync between your local Backbone.Collections and the local and remote hoodie datastores.
Backbone //creates a new hoodie at Backbone.hoodie var Task = BackboneModel; var TaskCollection = BackboneCollection var task = name: 'laundry'; // task will be saved into the hoodie storetask; var tasks = ; // upon initialization, tasks will fetch() all Task models from the datastore.// it'll find t and insert t in tasks. task2 = name: 'groceries'; task2;// task2 will be saved into the hoodie store// and will also be inserted into tasks task;// task will be deleted from the store// and will be removed from tasks