Convenience method to compile async helpers and add common functionality to use with async-helpers.
Install with npm:
$ npm install --save helper-compile-async
var compile = require('helper-compile-async');
Compile a helper function to add convenience methods for working with async-helpers.
Params
helper
{Function}: Helper function to be called with a modifiedoptions.fn
andoptions.inverse
function if available.returns
{Function}: Compiled helper function suitable to be registered with a template engine.
Example
// ensures that asyncHelpers.resolveIds is called on the
// rendered content from `options.fn` before returning
var helper = compile(function(options, cb) {
return options.fn(this, cb);
});
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Please read the contributing guide for advice on opening issues, pull requests, and coding standards.
(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)
To generate the readme, run the following command:
$ npm install -g verbose/verb#dev verb-generate-readme && verb
Install dev dependencies:
$ npm install && npm test
Brian Woodward
Copyright © 2017, Brian Woodward. MIT
This file was generated by verb-generate-readme, v0.4.2, on February 05, 2017.