Skip to content

Instantly share code, notes, and snippets.

@quirkey
Created October 14, 2010 04:33
Show Gist options
  • Save quirkey/625578 to your computer and use it in GitHub Desktop.
Save quirkey/625578 to your computer and use it in GitHub Desktop.
$.sammy(function() {
this.helpers({
clear: function() {
$('#main').html('');
}
});
this.before(function() {
this.clear();
});
this.get('#/', function() {
// load the index
});
this.get('#/user/:username', function() {
// load a user;
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment