gulp-hamlet-compile
Compile hamlet templates (see: https://github.com/inductor-labs/hamlet)
Last updated 6 years ago by purge .
MIT · Original npm · Tarball · package.json
$ cnpm install gulp-hamlet-compile 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.0                                ...           latest (6 years ago)

2 Versions

  • 0.1.0                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (4)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2017 © taobao.org |