Skip to content

Instantly share code, notes, and snippets.

@bmavity
Created July 2, 2010 17:54
Show Gist options
  • Save bmavity/461666 to your computer and use it in GitHub Desktop.
Save bmavity/461666 to your computer and use it in GitHub Desktop.
get('/', function() {
var self = this;
articleProvider.findAll(function(error, docs) {
jade.renderFile('./views/blogs_index.html.jade', {
locals: {
title: 'Blog',
articles: docs
}
},
function(err, result) {
self.halt(200, result);
});
});
});
@tj
Copy link

tj commented Jul 2, 2010

hmm looks fine, it does not work? whats the stack trace you get from sys.puts(err.stack) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment