Skip to content

Instantly share code, notes, and snippets.

@BigBlueHat
Created April 6, 2011 00:07
Show Gist options
  • Save BigBlueHat/904862 to your computer and use it in GitHub Desktop.
Save BigBlueHat/904862 to your computer and use it in GitHub Desktop.
Simple _list tester for BlueInk page items
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