Bespoke.js window.history
based URL router
Works in similar way as bespoke-hash but uses window.history
instead
var history = require('bespoke-history');
bespoke.from(selector, [
history()
]);
By default it will route urls against /
, but you can customize root path:
bespoke.from(selector, [
history('/my-custom-root/')
]);
In your presentation path:
$ npm install bespoke-history