Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.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;
- });
- })
Add Comment
Please, Sign In to add comment