handlebars-magic
Some things are easier to generate than to maintain: a page per service, a table per environment, a config per customer. This takes a directory of handlebars templates and writes the rendered counterpart of every file.
What changes for you
- One source, many outputs. Documentation, reports and configs come from the same templates and the same data.
- Predictable mapping. Each template in the input directory produces the file of the same name in the output directory.
- Handlebar helpers included, so the usual formatting and loops work out of the box.
- No project setup. Two paths on the command line; put it in a Makefile or CI step if you want.
Getting it
cargo install handlebars-magic
handlebars-magic templates . # render templates/ into the current directoryThis very site's documentation is generated that way: the templates live next to the project and the output is what you are reading.