Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 849 Bytes

.verb.md

File metadata and controls

49 lines (33 loc) · 849 Bytes

Usage

const reflinks = require('{%= name %}');

Since this is an async helper, it can only registered with engines that support async helpers:

templates

Register the helper for use with [templates][]

const templates = require('templates');
const app = templates();

app.asyncHelper('{%= alias %}', reflinks());

assemble

To register the helper for use with [assemble][] ^0.6.0:

const assemble = require('assemble');
const app = assemble();

app.asyncHelper('{%= alias %}', reflinks());

verb

Register the helper for use with [verb][]:

const verb = require('verb');
const app = verb();

app.asyncHelper('{%= alias %}', reflinks());

app.task('default', function() {
  app.src('.verb*.md')
    .pipe(app.dest('./'));
});