Crates.io | reify |
lib.rs | reify |
version | 0.5.5 |
source | src |
created_at | 2021-11-24 21:51:11.911848 |
updated_at | 2021-12-04 11:51:40.691976 |
description | Write configuration files from templates using env variables |
homepage | |
repository | https://github.com/dghilardi/reify |
max_upload_size | |
id | 487328 |
size | 51,818 |
Install using cargo:
cargo install reify
Write a template:
{
"host": "{{hostname}}",
"features": {
"showBetaBadge": "{{showBetaBadge}}",
"onlyBetaUsers": "{{onlyBetaUsers}}"
}
}
Write a configuration file:
[[mounts]]
source = "templates/environment.json"
destination = "out/environment.json"
processor = "handlebars"
Invoke the command to generate filled files:
dev_hostname=dev.com reify -c reify.toml -e dev
copy
simply copy source file to destination pathhandlebars
rust implementation of handlebars templating languagetera
tera templating engine