Skip to content

compile template to js string, and wrap as amd/cmd module.

License

Notifications You must be signed in to change notification settings

nisang/gulp-wind-tpl2js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-wind-tpl2js

Compile template to js string, and wrap as amd/cmd module.

Installation

Install package with NPM:

npm install gulp-wind-tpl2js

Usage

var tpl2js = require('gulp-wind-tpl2js');

gulp.task('tpl2js', function () {
    return gulp.src('./test/tpl/**/*.html')
        .pipe(tpl2js('c.js', {base: './test'}))
        .pipe(gulp.dest('./dest/'));
});

About

compile template to js string, and wrap as amd/cmd module.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published