gulp-ejs2seajs
translate ejs templets into js files in CMD mode
Install with npm.
npm install --save-dev gulp-ejs2seajs
var gulp = require('gulp');
var clean = require('gulp-ejs2seajs');
gulp.task('ejs2seajs', function () {
gulp.src('./src/js/**/tpls')
.pipe(ejs2seajs())
.pipe(gulp.dest('./src/'));
});
###tplname
Optional, name of the files created finally. Default to tpls.js
if ignore this option.
gulp.task('ejs2seajs', function () {
gulp.src('./src/js/**/tpls')
.pipe(ejs2seajs({ tplname: 'sth.js' }))
.pipe(gulp.dest('./src/'));
});
you can also read the demo for details.
Replace it to grunt-ejs2seajs while using grunt.
P.S., this project was forked from grunt-ejs2seajs to add reference processing.
MIT @ VaJoy Larn