node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

gulp-hamlet-compile

gulp-hamlet-compile

A hamlet-compiler plugin for gulp

Compile your hamlet templates with ease!

Usage

var gulp = require('gulp');
var hamlc = require('gulp-hamlet-compile');
 
gulp.task('hamlet', function () {
    gulp.src('./templates/**/*.haml')
        .pipe(hamlc())
        .pipe(gulp.dest('./build'));
});

API

hamlc(options)

options.exports

Type: String

Export compiled template as (default module.exports).

options.runtime

Type: String

Runtime provider (default hamlet-runtime).

References

See more examples on how to use hamlet here. Also check official tutorials here.

License

MIT