Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gulp-hamlet-compile

purge14MIT0.1.0

Compile hamlet templates (see: https://github.com/inductor-labs/hamlet)

gulp, gulp-plugin, hamlet, haml, compiler

readme

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