Process Handlebars in Markdown files.
npm install metalsmith-hbt-md
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();
A Handlebars instance.
-
pattern
String
A pattern to filter the files to process
MIT License, see LICENSE for details.