Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including metalsmith-hbt-md with all npm packages installed. Try it out:

var metalsmithHbtMd = require("metalsmith-hbt-md")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

metalsmith-hbt-md v1.0.1

Process Handlebars in Markdown files

metalsmith-hbt-md

Process Handlebars in Markdown files.

Installation

npm install metalsmith-hbt-md

Usage

You should pass the Handlebars instance you are working with to this plugin. Additionally you can also pass a pattern to filter the files to process:

var handlebars = require('handlebars');
var hbtmd = require('metalsmith-hbt-md');

new Metalsmith(__dirname)
    .use(hbtmd(handlebars, {
        pattern: '**/*.md'
    }))
    .build();

handlebars Object

A Handlebars instance.

options Object

  • pattern String

    A pattern to filter the files to process

License

MIT License, see LICENSE for details.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free