Created
April 6, 2011 00:07
-
-
Save BigBlueHat/904862 to your computer and use it in GitHub Desktop.
Simple _list tester for BlueInk page items
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
function(head, req) { | |
var row; | |
provides('html', | |
function() { | |
var page = {items:[],copyright:'BigBlueHat'}; | |
var posts = []; | |
while(row = getRow()) { | |
log(row); | |
} // end while | |
log(page.items); | |
page.site.host = req.headers.Host; | |
send(mustache.to_html(templates.page, page, templates.partials)); | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment