@sparkbox/downpour
v0.0.13
Published
Sparkbox implementation of drizzle-builder
Downloads
7
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:
import downpour from '@sparkbox/downpour';
import { myHelperFunc } from 'my-helper-package';
const opts = {
helpers: {
myHelper: myHelperFunc,
},
};
downpour(opts, cb);
Publishing to NPM
See contributing docs.