Jinja2 templates for yaml. Make dynamic rules and configs.
Project description
YAML Jinja2 expressions
Renders Jinja2 expressions inside YAML file.
Examples:
Load template from file
cfg/cfg.yml:
cfg:
test: "{{test}}"
from yex import Yex
yex = Yex('./cfg/')
print(yex.render_file('cfg.yml', test='passed'))
Output: {'cfg': {'test': 'passed'}}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yaml-expressions-0.0.1.tar.gz
(1.9 kB
view hashes)