version: 3.x
By default riot-route
is included in this starter kit, but can easily be replaced
with your own solution. This is just an example.
Links are prefiex with a hash #
, so the about page becomes
href="#/about"
You can see how that translates in the browser bar of this page
Normally, routes are stored in aroutes.js
file; for simplicity this example defines them in theapp/app.js
.