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 - Load data from an API
this.get('#/', function(context) {
this.load('thread')
.then( function(threads) {
$.each(threads, function(i, thread) {
context.render('templates/thread.template', {thread : thread}).appendTo(context.$element());
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment