An open API service indexing awesome lists of open source software.

https://github.com/farism/gulp-any-template

A gulp plugin to compile (almost) any template languge
https://github.com/farism/gulp-any-template

Last synced: about 1 month ago
JSON representation

A gulp plugin to compile (almost) any template languge

Awesome Lists containing this project

README

          

# gulp-any-template [![Circle CI](https://circleci.com/gh/farism/gulp-any-template/tree/master.svg?style=svg)](https://circleci.com/gh/farism/gulp-any-template/tree/master)

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

```js
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'))
})
```