https://github.com/primalzed/handlebars-rev
A CLI for generating a file from a handlebars template
https://github.com/primalzed/handlebars-rev
Last synced: 3 months ago
JSON representation
A CLI for generating a file from a handlebars template
- Host: GitHub
- URL: https://github.com/primalzed/handlebars-rev
- Owner: PrimalZed
- License: mit
- Created: 2020-04-03T00:35:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-05T17:59:06.000Z (over 3 years ago)
- Last Synced: 2025-06-04T12:47:28.046Z (about 1 year ago)
- Language: JavaScript
- Size: 365 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A CLI for generating a file from a handlebars template
```
hbs-rev --main main-template.handlebars --partials root-partials-directory --data data.json --output generated.html
```
Files in the `partials` directory can be referenced as [partials](https://handlebarsjs.com/guide/partials.html) based on the file name. For example, the file `root-partials-directory/layout.handlebars` becomes the partial `{{#> layout}}`
Includes additional helpers:
* https://github.com/helpers/handlebars-helpers#helpers
* https://github.com/helpers/handlebars-helper-repeat#usage-examples
Example usage: https://github.com/PrimalZed/handlebars-poc