Router
daslicht opened this issue · 2 comments
daslicht commented
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 ?
cuu508 commented
@daslicht what URL are you requesting in the browser? It is http://yourserver/#fruit
not http://yourserver/fruit
daslicht commented
->>> riot.route('/fruit',