Install using cargo:
shell
cargo install reify
Write a template (currently only handlebars is supported):
json
{
"host": "{{hostname}}",
"features": {
"showBetaBadge": "{{showBetaBadge}}",
"onlyBetaUsers": "{{onlyBetaUsers}}"
}
}
Write a configuration file:
toml
[[mounts]]
source = "templates/environment.json"
destination = "out/environment.json"
processor = "handlebars"
Invoke the command to generate filled files:
shell
dev_hostname=dev.com reify -c reify.toml -e dev