1.0.9 • Published 7 years ago

gulp-simple-gallery v1.0.9

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

gulp-simple-gallery

Very simple static HTML image gallery generator, based on files in a folder and super simple templating.

Point it to an HTML file containing your "master layout". It'll then look for images.html in the same folder, and merge the two together based on images found in the images folder, also located at the same level.

  • In the index/master layout file, use {{images}} to tell it where to repeat items for every image found.
  • In images.html, use {{imgsrc}} to insert the path to the image (relative to the index file).

Take a look at this example app to see it in action.

Examples

Basic usage: just pipe the index file through gallery().

gulp.task('createGalleryIndex', function() {
    return gulp.src('index.html')
            .pipe(gallery())
            .pipe(gulp.dest("dist"));
});
1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago