gulp-ejs-compile
v0.1.0
Published
Gulp plugin to compile lodash templates into AMD modules, with i18n
Downloads
11
Maintainers
Readme
gulp-ejs-compile
Gulp plugin to compile lodash templates into AMD modules, with i18n.
We use this at Stackbin to compile client side templates :)
Installation
npm install gulp-ejs-compile --save
Usage
gulpfile.js:
var gulp = require('gulp');
var compile = require('gulp-ejs-compile');
gulp.task('views', function () {
gulp.src('views/*.ejs')
.pipe(compile({
name: function (file) {
return file.name.replace(/\.ejs$/, '');
}
}))
.pipe(gulp.dest('dist'));
});
License
MIT - See LICENSE file