Created
June 26, 2012 09:18
-
-
Save olivernn/2994611 to your computer and use it in GitHub Desktop.
davis with hash routing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Davis.extend(Davis.hashRouting({ forceHashRouting: true })) | |
app = Davis(function () { | |
this.settings.handleRouteNotFound = true | |
this.get('#/foo', function () { | |
console.log('foo') | |
}) | |
this.get('#/bar', function () { | |
console.log('bar') | |
}) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="#/foo">Foo</a> | |
<a href="#/bar">Bar</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is related to the following issue - olivernn/davis.js#44