gulp-marko-compile
Compile Marko templates as part of your Gulp build process.
Usage
var marko = ; gulp;
Error handling
gulp-marko-compile will emit an error for cases such as invalid Marko syntax. If uncaught, the error will crash gulp.
You will need to attach a listener (i.e. .on('error')
) for the error event emitted by gulp-marko-compile:
var markoStream = ; // Attach listenermarkoStream;
In addition, you may utilize gulp-util's logging function:
var gutil = ; // ... var markoStream = ; // Attach listenermarkoStream;
Since .on(...)
returns this
, you can make you can compact it as inline code:
gulp // ...
Options
The options object supports the same options as the standard Marko compiler
TODO
Fully comply with Gulp plugin guidelines AKA write some tests
License
MIT License