x-router
frontend router
Install
$ npm install x-router --save
var xrouter = ;var app = ;
Usage
var app = // default render target ;
home /sub /sub/index /sub/some /sub/other target1 target2 target3
Configuration
support both
pushstate
andhash
, If you have not set up any value automatically usingpushstate
orhashbang(#!/path)
.
HTML
/a/b/a/cxrouter.href('/a/b/c/d')
Related Project
License
Licensed under the MIT License. See LICENSE for the full license text.