Skip to content

Instantly share code, notes, and snippets.

@jls
Created October 29, 2010 14:18
Show Gist options
  • Save jls/653628 to your computer and use it in GitHub Desktop.
Save jls/653628 to your computer and use it in GitHub Desktop.
var app = $.sammy(function(){
this.element_selector = '#content';
this.get(/\#!\/(.*)/, function(context){
this.partial('/' + this.params['splat']);
});
});
$(document).ready(function(){
app.run('#!/');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment