metalsmith-handlebars
A basic implimentation of handlebars for metalsmith
I made this plugin as an alternative to metalsmith-jstransformer so that the handlebars inline templating functionality can be leveraged. This means you can use handlebars like this:
src/index.hbs
---title: Home---{{#> main-layout }} {{#* inline "content-block" }} Hello, welcome to my metalsmith static site. {{/inline}}{{/main-layout}}
partials/main-layout.hbs
{{>content-block}}
The plugin can be used in the metalsmith 'use' definition like this:
const Metalsmith = handlebars = ; ;