Sparkbox implementation of drizzle-builder.
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);
See contributing docs.