Skip to content

cbguder/templateur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
}

About

Lightweight templates for YAML and JSON

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages