Project

templateur

0.0
No commit activity in last 3 years
No release in over 3 years
Lightweight templates for YAML and JSON
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
 Project Readme

Templateur

Lightweight templates for YAML and JSON, inspired by fly.

Installation

$ gem install templateur

Usage

For YAML output:

$ templateur --yaml template.yml parameters.yml

For JSON output:

$ templateur --json template.json parameters.json

Template Format

YAML

YAML templates look like this:

my_special_key: {{my_special_parameter}}

and the corresponding parameters file might look like:

my_special_parameter: my_special_secret

Combined, these files would produce the following output:

my_special_key: my_special_secret

JSON

JSON templates look like this:

{
  "my_special_key": {{my_special_parameter}}
}

and the corresponding parameters file might look like:

{
  "my_special_parameter": "my_special_secret"
}

Combined, these files would produce the following output:

{
  "my_special_key": "my_special_secret"
}