gulp-living-ruby-haml
This gulp plugin lets you invoke the ruby HAML gem.
Usage
var haml = require('gulp-living-ruby-haml');
gulp.src('foo')
.pipe(haml(options))
.pipe(gulp.dest('bar'));
Installation
Install using npm. Adding the "--save-dev" switch will add this as a dependency to package.json.
npm install gulp-living-ruby-haml --save-dev
Options
This plugin supports all the command line options offered by the HAML gem as of HAML version 3.1.7.
// All of the following are optional
// Run HAML --help on the command line to see what each of the switches mean.
var options = {
trace: true / false,
'unix-newlines': true / false,
c: true/false,
check: true / false,
style: 'ugly' / 'indented',
format: 'xhtml' / 'html4' / 'html5'
e: true / false,
'escape-html': true / false,
q: true / false,
'double-quote-attributes': true / false,
r: 'String FILE',
require: 'String FILE',
I: 'PATH',
'load-path': 'PATH',
'debug': true / false
};
Credits
The plugin draws heavily from gulp-ruby-haml plugin and seeks to improve upon it, and be actively maintained (thus 'living'). Patches and bug reports are welcome and will be responded to.