Skip to content

arosca/gulp-ejs-precompiler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-ejs-precompiler

A plugin for gulp that precompiles ejs templates

var ejs = require('gulp-ejs-precompiler');
var concat = require('gulp-concat');

gulp.task('ejs', function() {
    return gulp.src(paths.browser.templatesEJS)
        .pipe(plumber())
        .pipe(ejs({
            compileDebug: true,
            client: true
        }))
        .pipe(concat(pkg.name + /*'-' + pkg.version +*/ '.templates.js'))
        .pipe(insert.prepend('window.templates = {};'+"\n"))
        .pipe(gulp.dest(paths.dist));
});

About

A plugin for gulp that precompiles ejs templates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%