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
- Host: GitHub
- URL: https://github.com/farism/gulp-any-template
- Owner: farism
- License: mit
- Created: 2017-08-22T09:56:07.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-26T07:46:25.000Z (almost 9 years ago)
- Last Synced: 2025-01-29T21:54:30.603Z (over 1 year ago)
- Language: JavaScript
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-any-template [](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'))
})
```