Created
July 2, 2010 17:54
-
-
Save bmavity/461666 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hmm looks fine, it does not work? whats the stack trace you get from sys.puts(err.stack) ?