gulp-hamlet-compile

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i gulp-hamlet-compile

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • purge