reify

Crates.ioreify
lib.rsreify
version0.5.5
sourcesrc
created_at2021-11-24 21:51:11.911848
updated_at2021-12-04 11:51:40.691976
descriptionWrite configuration files from templates using env variables
homepage
repositoryhttps://github.com/dghilardi/reify
max_upload_size
id487328
size51,818
Davide Ghilardi (dghilardi)

documentation

README

Reify

Test Status Crate API

Quick start

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

Supported Templates

  • copy simply copy source file to destination path
  • handlebars rust implementation of handlebars templating language
  • tera tera templating engine
Commit count: 58

cargo fmt