kilork.github.io

handlebars-magic

Generate files from handlebars templates, without a build system.

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

Getting it

cargo install handlebars-magic
handlebars-magic templates .      # render templates/ into the current directory

This very site's documentation is generated that way: the templates live next to the project and the output is what you are reading.

Where to look

source · crate