OzJS
A microkernel for modular javascript, a toolchain for modern front-end, a micro-framework for growable WebApp.
- A lightweight implementation of routing and URL manager
- Automatic switch between html5 History API and IE's hashbang
var URLKit = require('urlkit');
URLKit.parse(url) -- URLKit.param(urlObj, options) -- URLKit.SUPPORT_PUSHSTATE -- var url = URLKit({
baseUrl: '', // optional, '/' for default
win: window, // optional
autotidy: true // optional, true for default
});
url.listen() -- url.stop() -- url.route(rule, handler) -- url.nav(urlConfig, {
/* replace: true,
route: false */
}) -- url.load(url, options) -- url.set(options) -- url.checkRules(url, rules) -- url.getBaseUrl() -- Under construction...
Copyright (c) 2010 - 2013 dexteryy
Licensed under the MIT license.