0.0.7 • Published 12 years ago

routely-js v0.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
12 years ago

/ly

NPM

Simple hash router with no dependencies (based on the backbone.js router).

#Install

$ npm install routely-js

example

var router = new Routely();

router.route('/', function () {
	console.log('index page');
});

router.route('/about', function () {
	console.log('about page');
});

router.route('/user/:id', function (id) {
	console.log("user " + id + " page");
});

router.route('/user/:id/posts/:slug', function (id, slug) {
	console.log("user " + id + " post " + slug + " page");
});

##Contribute

$ npm install
$ npm test

##License MIT

0.0.7

12 years ago

0.0.6

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago