Skip to content

Instantly share code, notes, and snippets.

@olivernn
Created June 26, 2012 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olivernn/2994611 to your computer and use it in GitHub Desktop.
Save olivernn/2994611 to your computer and use it in GitHub Desktop.
davis with hash routing
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')
})
})
@olivernn
Copy link
Author

This is related to the following issue - olivernn/davis.js#44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment