gulp-ruby-haml-format-option
Compile Haml to HTML with Ruby Haml + option '-q' and '-f NAME'
This is a gulp plugin that will use the haml
command
line script to compile your Haml files into HTML. You need both Ruby and Haml
installed to use this.
Install Ruby
Go to Ruby and install it.
Install haml
If you use Bundler, please follow the below steps in order to install Haml.
echo 'gem "haml"' >> Gemfilebundle install
Options
This plugin allow to use doubleQuote and format option.
gulpfile.js example
var gulp = ;var watch = ;var haml = ; // Compile Haml into HTML5gulp; // Compile Haml into HTML5 with double quotes around attributes// Same as haml -qgulp; // Compile Haml into XHTML with double quotes around attributes// Same as haml -q -f xhtmlgulp; // Compile Haml into HTML// Same as haml -f htmlgulp; // Watch for changes in Haml filesgulp;