Name: gulp-haml-coffee
Owner: Rainforest QA
Description: Gulp plugin for Haml
Created: 2015-03-09 08:21:07.0
Updated: 2015-03-09 09:29:38.0
Pushed: 2015-03-09 09:29:38.0
Homepage: null
Size: 102
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Issues with the output should be reported on haml
Package | gulp-haml-coffee |
Description | haml-coffee plugin for Gulp |
Node Version | >= 0.9 |
Gulp Version | 3.x |
npm install gulp-haml-coffee --save
ulpfile.js
equire the needed packages
gulp = require('gulp');
hamlc = require('gulp-haml-coffee');
et one .hamlc file and render
.task('one', function () {
lp.src('./haml/file.hamlc')
.pipe(hamlc())
.pipe(gulp.dest('./html'));
et all .hamlc files in one folder and render
.task('one', function () {
lp.src('./haml/blue/*.hamlc')
.pipe(hamlc())
.pipe(gulp.dest('./haml/blue'));
et and render all .hamlc files recursively
.task('hamlc', function () {
lp.src('./haml/**/*.hamlc')
.pipe(hamlc())
.pipe(gulp.dest('./haml'));
efault gulp task to run
.task('default', function(){
lp.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.
Object, String
Options are passed straight through to the haml-coffee module.
(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.