Compile template to js string, and wrap as amd/cmd module.
Install package with NPM:
npm install gulp-wind-tpl2js
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/'));
});