Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@harbhub
Created September 6, 2012 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harbhub/3651295 to your computer and use it in GitHub Desktop.
Save harbhub/3651295 to your computer and use it in GitHub Desktop.
doctype 5
html
head
body
p Hey
each item in images
li= item
@harbhub
Copy link
Author

harbhub 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
Copy link
Author

harbhub 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