gulp-tale-pug
v1.2.1
Published
Pug to PHP template compiler using Tale-Pug (formerly Tale-Jade)
Downloads
12
Maintainers
Readme
Gulp Tale Jade
Gulp plugin for Tale Jade.
Eventually to use Phug.
Usage
Example gulpfile.js
:
const plumber = require( 'gulp-plumber' );
const browsersync = require( 'browser-sync' ).create();
const jade = require( 'gulp-tale-jade' );
gulp.task( 'default', [ 'templates', /* … */ ] );
gulp.task( 'watch', ['browsersync'], function () {
gulp.watch( 'templates/**/*.jade', [ 'templates' ]).on('change', browsersync.reload);
});
gulp.task( 'templates', function () {
return gulp.src( [ 'templates/*.jade' ] )
.pipe( plumber() )
.pipe( jade() )
.pipe( gulp.dest( /* DESTINATION */ ) );
});