gulp-haml-coffee

0.0.6 • Public • Published

Gulp-Haml-Coffee

Build Status NPM version

Issues with the output should be reported on haml

Information

Packagegulp-haml-coffee
Description haml-coffee plugin for Gulp
Node Version >= 0.9
Gulp Version 3.x

Usage

Install

npm install gulp-haml-coffee --save

Examples

 
// Gulpfile.js
// Require the needed packages
var gulp = require('gulp');
var hamlc = require('gulp-haml-coffee');
 
 
// Get one .hamlc file and render
gulp.task('one', function () {
  gulp.src('./haml/file.hamlc')
    .pipe(hamlc())
    .pipe(gulp.dest('./html'));
});
 
 
// Get all .hamlc files in one folder and render
gulp.task('one', function () {
  gulp.src('./haml/blue/*.hamlc')
    .pipe(hamlc())
    .pipe(gulp.dest('./haml/blue'));
});
 
 
 
// Get and render all .hamlc files recursively
gulp.task('hamlc', function () {
  gulp.src('./haml/**/*.hamlc')
    .pipe(hamlc())
    .pipe(gulp.dest('./haml'));
});
 
 
// Default gulp task to run
gulp.task('default', function(){
  gulp.run('haml', 'one');
});
 

Please note that gulp-haml-coffee compiles to plain HTML per default. If you want it to compile to JavaScript instead, pass { js: true } to the module.

Options

Object, String

Options are passed straight through to the haml-coffee module.

LICENSE

(MIT License)

Copyright (c) 2014 Sascha Gehlich sascha@gehlich.us Derived from gulp-haml by Steve Lacy (http://slacy.me)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Package Sidebar

Install

npm i gulp-haml-coffee

Weekly Downloads

42

Version

0.0.6

License

MIT

Last publish

Collaborators

  • saschagehlich