image-gal
v1.0.1
Published
Reads directory and outputs html to display images in that directory, works well with Square Photo Gallery to create visual catalogs
Downloads
1
Readme
Usage
// Requiring the module
var imageGalModule = require('image-gal');
// Instantiation
var imageGal = imageGalModule()
// Using own template file
var template = 'my-template.html'
var imageGal = imageGalModule(template);
Then you can use it as an Express.js route handler
app.get('/images*', imgGal);
If the url path is /images
it will output images folder contents
if the url path is /images/cats
it will output cats folder contents
If you use your own template file put <% images %>
where you want images' html to appear