npm

handlebars-dir

1.5.8 • Public • Published

Handlebars dir

Handlebars are nice! This package helps to read a directory as compile the .handlebars and .hbs files into templates. They can be references by their name (with and without extension). It also registers every file as partial, so it can be referenced from other files.

Installation

Install it using NPM:

Usage

Use the NamedTemplateParser like to interact with the API:

Manual input

You can also manually add named templates to the parser:

Keywords

Install

npm i handlebars-dir

39

1.5.8

MIT

10.2 kB

6