gulp-hamlet-compile
v0.1.0
Published
Compile hamlet templates (see: https://github.com/inductor-labs/hamlet)
Downloads
9
Maintainers
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.