A plugin for gulp that parses striate template files.
npm install --save-dev gulp-striate
var striate = require("gulp-striate")
gulp.src("./templates/*.str")
.pipe(striate({
msg: "Hello Gulp!"
}))
.pipe(gulp.dest("./dist"))
If you want to use gulp-striate in a watch/livereload task, you may want to avoid gulp exiting on error when, for instance, a partial file is ENOENT
.
var striate = require('gulp-striate')
var gutil = require('gulp-util')
gulp.src('./templates/*.str')
.pipe(striate({
msg: 'Hello Gulp!'
}).on('error', gutil.log))
.pipe(gulp.dest('./dist'))
See striate API.
ISC