Basic route stuff working

This commit is contained in:
Max Lynch
2013-09-19 23:48:11 -05:00
parent 1814b0e781
commit 32b59ff372
3 changed files with 70 additions and 13 deletions

View File

@ -15,13 +15,20 @@
</header>
<main class="has-header content">
<a href="#cats">Cats</a>
<a href="cats/">Cats</a>
</main>
</section>
<script src="RouteController.js"></script>
<script>
var rc = new RouteViewController({
root: 'hacking/'
});
rc.when('route.html', function() {
console.log('Loaded');
});
rc.when('cats', function() {
console.log('Loaded');
});
</script>
</body>