gulp-handlebars-all
A gulp plugin for compiling handlebars templates to either JS or HTML.
Install
$ npm install --save gulp-handlebars-all
Usage
var gulp = ;var $ = ;var hbsAll = ; gulp; gulp;
API
gulp-handlebars-all(outputType, options)
outputType
js
: output to precompiled js function used with handlebars runtimehtml
: output to compiled HTML
options
Options are passed through to handlebars, except for the following:
- context: context object used for compiling to HTML
- partials: paths of partial files to be registered before compiling
- helpers: helper functions to be registered before compiling
License
MIT © Guangyao LIU