gulp-marko-render
v1.0.4
Published
A Gulp plugin for Marko template engine.
Downloads
79
Readme
gulp-rev
A Gulp plugin for Marko template engine.
Install
$ npm install --save-dev gulp-marko-render
Usage
const gulp = require('gulp');
const markoRender = require('gulp-marko-render');
gulp.task('default', () =>
gulp.src('src/*.marko')
.pipe(markoRender())
.pipe(gulp.dest('dist'))
);
With Marko Options
const gulp = require('gulp');
const markoRender = require('gulp-marko-render');
gulp.task('default', () =>
gulp.src('src/*.marko')
.pipe(markoRender({
writeToDisk: false,
preserveWhitespace: true,
ext: "html"
}))
.pipe(gulp.dest('dist'))
);