Gulp-Haml-Coffee
Usage
Install
npm install gulp-haml-coffee-compile --save
Examples
// Gulpfile.js// Require the needed packagesvar gulp = ;var hamlc = ; // Get one .hamlc file and rendergulp; // Get all .hamlc files in one folder and rendergulp; // Get and render all .hamlc files recursivelygulp; // Default gulp task to rungulp;
Options
opts.compile.includePath
Type: boolean
Default: false
Specifies whether or not to include the relative path in automatic generated name.
When enabled, you'll get results like window.HAML['path/to/template'] instead of window.HAML['template'].
opts.compile.pathRelativeTo
Type: string
Default: "./"
Specifies the base directory to start looking for files.
If ./src/javascripts/demo
it's passed, you'll get results like window.HAML['templates/hello'] instead of window.HAML['src/javascripts/demo/templates/hello'].
opts
The rest of the options are passed straight through to the haml-coffee module.
Copyright
Copyright (c) 2015 Emilio Forrer. See LICENSE.txt for further details.