1.1.0 • Published 4 years ago

handlebars-register-partials-from-directory v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

handlebars-register-partials-from-directory

Register all the view in a given directory as Handlebars partials.

Coverage 100%.

Install

npm i -S handlebars-register-partials-from-directory

Example

const Handlebars = require("handlebars");
const register = require("handlebars-register-partials-from-directory");

await register(Handlebars, "path/to/partials");

Options

  • string prefix

  • function match {filename -> bool}

1.1.0

4 years ago

1.0.0

4 years ago