Skip to content

daizch/gulp-juicer2js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-juicer2js

NPM version Build Status

A gulp plugin to transform the template of juicer to javascript function.

Usage

Firstly, install gulp-juicer2js as a development dependency:

npm install gulp-juicer2js --save-dev

Then, add it into your gulpfile.js:

transform the template content of juicer to javascript function:

var juicer2js = require("gulp-juicer2js");

gulp.src("./src/**/*.juicer")
    .pipe(juicer2js())
    .pipe(gulp.dest("build"));

** use the transformed js function: **

//tpl is the transformed content
var html = tpl({val: 'hello world'});

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published