gulp-sleet
compile sleet files with gulp
Last updated 2 years ago by jacokoo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-sleet 
SYNC missed versions from official npm registry.

gulp-sleet

Compile sleet files with Gulp.

Usage

gulp.task('sleet', function() {
    gulp.src('./**/*.sleet')
        .pipe(sleet({
            extension: 'html',
            handlebars: {
                block: ['layout', 'view']
            }
        }))
        .pipe(gulp.dest('./'));
});

or configurate it via package.json

{
    ...
    "dependencies": {
        ...
    },
    "sleet": {
        "extension": "html",
        "handlebars": {
            "block": ["layout", "view"]
        }
    }
}

and use it like:

gulp.task('sleet', function() {
    gulp.src('./**/*.sleet')
        .pipe(sleet())
        .pipe(gulp.dest('./'));
});

gulp.task('sleet2', function() {
    gulp.src('./**/*.sleet')
        .pipe(sleet({ignore: ['hbs', 'html']})) // do not re-compile when there is a compiled file
        .pipe(gulp.dest('./'));
});

Current Tags

  • 0.1.4                                ...           latest (2 years ago)

7 Versions

  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.1.0                                ...           4 years ago
  • 0.0.3                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 19
This Month 19
Last Day 2
Last Week 17
Last Month 68
Dependencies (6)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2016 © taobao.org |