// ----------------------------------------------- // Routing // ----------------------------------------------- // [ set hash base ] ----------------------------- route.base('#'); // [ define routes ] ----------------------------- // home page route('/', function () { riot.unmount('#view', true); riot.mount('#view', {}, 'home'); }); // about page route('/about', function () { riot.unmount('#view', true); riot.mount('#view', {}, 'about'); }); export default route;