Handlebars implementation for the laminar http server.
When you set
dir, it will load and compile templates in
Creating the middleware would crawl through the directory and all of its subdirectories, extracting handlebar files and compiling them.
Custom response options
Usage without middleware
You can also create the handblebars renderer directly without going through a middleware
Running the tests
You can run the tests with:
Coding style (linting, etc) tests
Style is maintained with prettier and eslint
Deployment is preferment by lerna automatically on merge / push to master, but you'll need to bump the package version numbers yourself. Only updated packages with newer versions will be pushed to the npm registry.
Have a bug? File an issue with a simple example that reproduces this so we can take a look & confirm.
Want to make a change? Submit a PR, explain why it's useful, and make sure you've updated the docs (this file) and the tests (see test folder).
This project is licensed under Apache 2 - see the LICENSE file for details