0.0.7 • Published 10 years ago

routely-js v0.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
10 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

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago