Skip to content

A plugin for gulp that parses striate template files.

Notifications You must be signed in to change notification settings

raineorshine/gulp-striate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-striate

npm version

A plugin for gulp that parses striate template files.

Usage

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'))

API

striate(data, options)

See striate API.

License

ISC

About

A plugin for gulp that parses striate template files.

Resources

Stars

Watchers

Forks

Packages

No packages published