Package Exports
- gulp-compile-handlebars
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-compile-handlebars) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gulp-compile-handlebars
Forked from gulp-template Inspired by grunt-compile-handlebars
Compile Handlebars templates
Install
Install with npm
npm install --save-dev gulp-compile-handlebarsExample
src/hello.handlebars
<h1>Hello {{firstName}}</h1>gulpfile.js
var gulp = require('gulp');
var handlebars = require('gulp-compile-handlebars');
gulp.task('default', function () {
gulp.src('src/hello.handlebars')
.pipe(handlebars({
name: 'Kaanon'
}))
.pipe(rename('hello.html'))
.pipe(gulp.dest('dist'));
});dist/hello.html
<h1>Hello Kaanon</h1>License
MIT © Kaanon MacFarlane