Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
doctype 5
html
head
body
p Hey
each item in images
li= item
@harbhub

This comment has been minimized.

Copy link
Owner Author

commented Sep 6, 2012

var fs = require('fs');
var images = [];
fs.readdir(__dirname + '/' + 'public/images/blackwhite', function(err,files){images = files;});
console.log("IMAGES: " + images);

@harbhub

This comment has been minimized.

Copy link
Owner Author

commented Sep 6, 2012

exports.blackwhite = function(req, res){
res.render('blackwhite', { title: 'Marquee Le Photo', images: images });
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.