Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.2 KB

.verb.md

File metadata and controls

46 lines (30 loc) · 1.2 KB

Usage

var coverage = require('{%= name %}');

// specify the file to include (generated by istanbul)
coverage('coverage/summary.txt');

Live examples

Registering the helper

[Handlebars]

Register and use the helper with [handlebars][]:

var handlebars = require('handlebars');
handlebars.registerHelper('coverage', require('{%= name %}'));
handlebars.compile('{{coverage "coverage/summary.txt"}}')();

[Verb][]

Register and use the helper with [verb][]

var verb = require('verb');
verb.helper('coverage', require('{%= name %}'));
verb.render('{%= coverage("coverage/summary.txt") %}');

Related projects

Use the helper with one of these great projects:

{%= related(['verb', 'assemble', 'templates', 'update', 'generate']) %}

Register the helper with your engine of choice:

{%= related(['handlebars', 'lodash', 'engine-lodash', 'engine-base', 'engine-handlebars']) %}

Or any other engine that has support for helper functions.