Skip to content

VaJoy/gulp-ejs2seajs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-ejs2seajs

translate ejs templets into js files 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.

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.

Grunt

Replace it to grunt-ejs2seajs while using grunt.

P.S., this project was forked from grunt-ejs2seajs to add reference processing.

LICENSE

MIT @ VaJoy Larn

About

translate ejs templets into seajs modules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published