gulp-superviewsjs
v1.0.20
Published
plugin GULP to convert template superview to Incremental DOM
Downloads
17
Maintainers
Readme
gulp-superviewsjs
gulp-superviewsjs is a simple gulp plugin to use superviewjs, a Template engine for google incremental-DOM.
####Install
'npm install gulp-superviewsjs --save-dev'
####Usage
var gulp_superviewsjs = require('gulp-superviewsjs');//import the plugin
// your code here!!
pipe(gulp_superviewsjs())
//..pass to next pipe ;)
####A more "complex" example (with "gulp-rename" gulp plugin):
var rename = require("gulp-rename");
gulp.task('superviews2IDOM',function(){
return gulp.src([
"/**/template/*.html"
])
.pipe(gulp_superviewsjs({mode:"es6"}))
.pipe(rename({
extname: ".js"
}))
.pipe(gulp.dest(distPackage));
});
API
mode = "es6", "cjs", "browser" or "amd"
{mode:"es6"}