Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.
/ LawnchairSync Public archive

Lawnchair sync takes your lawnchair and synchronises it with your JSON feed of choice.

Notifications You must be signed in to change notification settings

nathanbrock/LawnchairSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lawnchair Sync

v0.1.0

Build Status

Lawnchair sync takes your Lawnchair and synchronises it with your JSON feed of choice.

Requirements

Demo

You can find a demo of Lawnchair Sync in the form of a Github stars viewer at http://nbrock.github.io/LawnchairSync/

Usages

var store = new Lawnchair({name:'json-feed'}, function() {
	this.sync({
		url: 'http://www.domain.com/feed.json',
		ttl: 60,
		store: store
	}, function(data) {
		console.log(data);
	});
})

Options

  • url - The URL of the feed you wish to sync from. required
  • ttl - The time to live for the cached data. Default: 30 (minutes)
  • key - A unique key for the data to be indexed by. Default: id
  • force - Set to true to force data to sync. Default: false
  • ajax - options used during use of the jQuery ajax method.
  • callback
    • prestore - Make adjustments to the data before saving. Default: false

About

Lawnchair sync takes your lawnchair and synchronises it with your JSON feed of choice.

Resources

Stars

Watchers

Forks

Packages

No packages published