npm

gulp-any-template

0.3.1 • Public • Published

gulp-any-template Circle CI

Zero-config Gulp plugin to pipe any template format and emit an interpolated file. Currently supported templating engines are:

  • Dustjs-linkedin
  • EJS
  • Handlebars
  • Hogan
  • lodash.template
  • Mustache
  • Pug
  • Swig
  • underscore.template

Example

const anyTemplate = require('gulp-any-template')
 
gulp.task('compile-template', () => {
  return gulp.src('index.ejs')
    .pipe(anyTemplate({ title: 'Title' }))
    .pipe(rename('index.html'))
    .pipe(gulp.dest('build'))
})

Package Sidebar

Install

npm i gulp-any-template

Weekly Downloads

0

Version

0.3.1

License

MIT

Last publish

Collaborators

  • farismmk