0.1.0 • Published 10 years ago

gulp-hamlet-compile v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 years ago

gulp-hamlet-compile

A hamlet-compiler plugin for gulp

npm.io

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