README
Downpour
Sparkbox implementation of drizzle-builder
Usage
Downpour exposes the drizzle-builder as a function to compile handlebars templates into HTML.
All drizzle-builder options are valid.
Downpour includes a few handlebars helpers by default:
To add additional helpers create a helpers
key in the options object like so:
const downpour = require('downpour');
const { myHelperFunc } = require('my-helper-package');
const opts = {
helpers: {
myHelper: myHelperFunc,
},
};
downpour(opts, cb);
Publishing to NPM
- Update the version number in
package.json
using semantic versioning. - Run
npm install
to updatepackage-lock.json
and commit both files. - Pull down the latest version of master and run
npm publish
.