Skip to content

Instantly share code, notes, and snippets.

@fwielstra

fwielstra/app.js

Created Jun 13, 2011
Embed
What would you like to do?
Sammy.js - Basic application
(function($) {
var app = $.sammy('#main', function() {
this.get('#/', function(context) {
alert('index!');
});
});
$(function() {
app.run('#/');
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment