gulp-tale-jade
v1.0.1
Published
Jade to PHP template compiler using 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 */ ) );
});