CLI utility for template rendering

Installation

To use this tool, you need to have Rust installed on your system. You can then install the tool using cargo, Rust's package manager.

bash cargo install yampl

Usage

bash yampl render --input ./config.yampl --output ./rendered.txt

Config file

The config file describes how to render template.

```yaml template: ./example/template.yaml

params: goprivate: {{env_var "GOPRIVATE"}} some: some: some: "some _ some _ some" ```

You can use the handlebarsmischelpers helpers in config and template files.

Example

Assuming that the config.yaml file has the following contents:

```yaml template: ./template.txt

params: name: John age: 30 ```

And the template.txt file has the following contents:

txt Hello, {{name}}! You are {{age}} years old.

The above command will render the template using the arguments specified in the config file and write the output to the output.txt file