metalsmith-register-partials

March 27, 2015 ยท View on GitHub

unstable

A Metalsmith plugin for registering Handlebars partials.

CLI Usage

Install via npm and then add the metalsmith-register-partials key to your metalsmith.json plugins, like so:

{
  "plugins": {
    "metalsmith-register-partials": {
      "directory": "path/to/partials"
    }
  }
}

This will register all partials in the specified directory and use the first part of the filename as the partial name.

License

MIT, see LICENSE.md for details.