gulp-ejs2seajs
v1.0.5
Published
Compile ejs files to seajs module with gulp
Downloads
2
Readme
gulp-ejs2seajs
debug and translate ejs templets into a js file in CMD mode
Install
Install with npm.
npm install --save-dev gulp-ejs2seajs
Examples
var gulp = require('gulp');
var clean = require('gulp-ejs2seajs');
gulp.task('ejs2seajs', function () {
gulp.src('./src/js/**/tpls')
.pipe(ejs2seajs())
.pipe(gulp.dest('./src/'));
});
Options
###tplname
Optional, name of the files created finally. Default to tpls.js
if ignore this option.
you can also read the demo for details.
Grunt
Replace it to grunt-ejs2seajs while using grunt.
MIT @ VaJoy Larn