@sparkbox/downpour

Sparkbox implementation of drizzle-builder

Usage no npm install needed!

<script type="module">
  import sparkboxDownpour from 'https://cdn.skypack.dev/@sparkbox/downpour';
</script>

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

  1. Update the version number in package.json using semantic versioning.
  2. Run npm install to update package-lock.json and commit both files.
  3. Pull down the latest version of master and run npm publish.