Guest User

Untitled

a guest
Jun 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. $.sammy(function() {
  2.  
  3. this.helpers({
  4. clear: function() {
  5. $('#main').html('');
  6. }
  7. });
  8.  
  9. this.before(function() {
  10. this.clear();
  11. });
  12.  
  13. this.get('#/', function() {
  14. // load the index
  15. });
  16.  
  17. this.get('#/user/:username', function() {
  18. // load a user;
  19. });
  20.  
  21. })
Add Comment
Please, Sign In to add comment