https://github.com/opcode81/yamlgen
A generator for YAML files that supports recursive inclusions
https://github.com/opcode81/yamlgen
Last synced: 21 days ago
JSON representation
A generator for YAML files that supports recursive inclusions
- Host: GitHub
- URL: https://github.com/opcode81/yamlgen
- Owner: opcode81
- Created: 2013-12-05T23:11:43.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-27T09:14:19.000Z (over 11 years ago)
- Last Synced: 2025-01-26T01:44:43.533Z (over 1 year ago)
- Language: Python
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
yamlgen
=======
#### A generator for YAML files that supports recursive inclusions and variables
### Inclusions
yamlgen generates YAML (.yml) files from YAML generator (.yg) files that support
an include directive of the following form:
> `!include "<.yg or .yml file>"`
The path to included files can be relative to the including file or absolute.
Any inclusions in included .yg files will be recursively resolved.
The include directive can appear at any indentation level. If indented,
the included file inherits the respective indentation and the indentation
will be appended appropriately.
Generated .yml files will be placed in the same directory as the input files.
### Variables
YAML generator files may contain string variable definitions, and these variables can
be referenced later.
> `!${varname} = "value"`
To reference a variable simply use the expression !${varname} in your .yg files.