backbone-datarouter
所属分类:人工智能/神经网络/深度学习
开发工具:CoffeeScript
文件大小:21KB
下载次数:0
上传日期:2014-05-13 12:20:18
上 传 者:
sh-1993
说明: 考虑到jquery mobile、localstorage缓存和主干集合而构建的路由器抽象
(A router abstraction built with jquery-mobile, localstorage caching, and backbone collections in mind)
文件列表:
.bowerrc (66, 2014-05-13)
.editorconfig (173, 2014-05-13)
.jshintrc (406, 2014-05-13)
.travis.yml (140, 2014-05-13)
Gruntfile.coffee (438, 2014-05-13)
LICENSE (1085, 2014-05-13)
bower.json (578, 2014-05-13)
build (0, 2014-05-13)
build\authorize_kinvey.js (5069, 2014-05-13)
build\backbone-datarouter.js (10286, 2014-05-13)
build\cache.js (5264, 2014-05-13)
build\dom_storage_adapter.js (3218, 2014-05-13)
lib (0, 2014-05-13)
lib\authorize_kinvey.coffee (5995, 2014-05-13)
lib\backbone-datarouter.coffee (11641, 2014-05-13)
lib\cache.coffee (3405, 2014-05-13)
lib\dom_storage_adapter.coffee (4451, 2014-05-13)
package.json (666, 2014-05-13)
tasks (0, 2014-05-13)
tasks\clean.coffee (147, 2014-05-13)
tasks\coffee.coffee (228, 2014-05-13)
tasks\watch.coffee (201, 2014-05-13)
test (0, 2014-05-13)
test\test.backbone-datarouter.js (373, 2014-05-13)
test\test.config.js (544, 2014-05-13)
# Backbone DataRouter
[![Build Status](http://ci.ldk.io/logankoester/backbone-datarouter/badge)](http://ci.ldk.io/logankoester/backbone-datarouter/)
[![Dependency Status](https://david-dm.org/logankoester/backbone-datarouter.png)](https://david-dm.org/logankoester/backbone-datarouter)
[![devDependency Status](https://david-dm.org/logankoester/backbone-datarouter/dev-status.png)](https://david-dm.org/logankoester/backbone-datarouter#info=devDependencies)
[![NPM version](https://badge.fury.io/js/backbone-datarouter.png)](http://badge.fury.io/js/backbone-datarouter)
[![Bower version](https://badge.fury.io/bo/backbone-datarouter.png)](http://badge.fury.io/bo/backbone-datarouter)
[![Gittip](http://img.shields.io/gittip/logankoester.png)](https://www.gittip.com/logankoester/)
[![NPM](https://nodei.co/npm/backbone-datarouter.png?downloads=true)](https://nodei.co/npm/backbone-datarouter/)
**WARNING** This library is in an early, experimental stage at the moment. Don't take it seriously just yet.
-
## Overview
**DataRouter** offers a friendly CoffeeScript-oriented syntax for describing resource-oriented routes in single-page applications.
```coffeescript
A.route '#items': require('items/index'), collection: 'Items' region: (A)-> A.getRegion 'list'
```
Data resources are automatically fetched and cached for you before initializing the view. It works well with [Backbone.Marionette](https://github.com/marionettejs/backbone.marionette) and may even require it in the future.
This library *currently* depends on [jquerymobile-router](https://github.com/azicchetti/jquerymobile-router), but this requirement [will be going away](https://github.com/logankoester/backbone-datarouter/issues/10). DataRouter is ultimately intended for general use.
#### [View Full Documentation](http://coffeedoc.info/github/logankoester/backbone-datarouter/master/)
## Installation
$ npm install bower -g
$ bower install backbone-datarouter --save
The `--save` flag will save backbone-datarouter as a dependency in your project's `bower.json` file.
## Getting Started
> **Somebody still needs to write this section. Why not you?**
## LICENSE
Copyright (c) 2013-2014 Logan Koester.
Released under the MIT license. See `LICENSE` for details.
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/logankoester/backbone-datarouter/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
[![status](https://sourcegraph.com/api/repos/github.com/logankoester/backbone-datarouter/badges/status.png)](https://sourcegraph.com/github.com/logankoester/backbone-datarouter)
[![xrefs](https://sourcegraph.com/api/repos/github.com/logankoester/backbone-datarouter/badges/xrefs.png)](https://sourcegraph.com/github.com/logankoester/backbone-datarouter)
[![funcs](https://sourcegraph.com/api/repos/github.com/logankoester/backbone-datarouter/badges/funcs.png)](https://sourcegraph.com/github.com/logankoester/backbone-datarouter)
[![top func](https://sourcegraph.com/api/repos/github.com/logankoester/backbone-datarouter/badges/top-func.png)](https://sourcegraph.com/github.com/logankoester/backbone-datarouter)
[![library users](https://sourcegraph.com/api/repos/github.com/logankoester/backbone-datarouter/badges/library-users.png)](https://sourcegraph.com/github.com/logankoester/backbone-datarouter)
[![authors](https://sourcegraph.com/api/repos/github.com/logankoester/backbone-datarouter/badges/authors.png)](https://sourcegraph.com/github.com/logankoester/backbone-datarouter)
[![Total views](https://sourcegraph.com/api/repos/github.com/logankoester/backbone-datarouter/counters/views.png)](https://sourcegraph.com/github.com/logankoester/backbone-datarouter)
[![Views in the last 24 hours](https://sourcegraph.com/api/repos/github.com/logankoester/backbone-datarouter/counters/views-24h.png)](https://sourcegraph.com/github.com/logankoester/backbone-datarouter)
近期下载者:
相关文件:
收藏者: