riotjs-loader
riotjs-loader copied to clipboard
Router
Hi, I tried adding a route like this:
require('./name.tag');
<app>
<name first="Hello" last="World"></name>
<name first="Ola" last="Mundo"></name>
<name first="Hallo" last="Welt"></name>
</app>
<script>
riot.route('/fruit', function(name) {
console.log('The list of fruits');
})
riot.route.start(true);
</script>
But it is not found ?
@daslicht what URL are you requesting in the browser? It is http://yourserver/#fruit
not http://yourserver/fruit
->>> riot.route('/fruit',
http://yourserver/fruit