diff options
author | Daniel Watkins <daniel.watkins@canonical.com> | 2017-07-31 17:46:57 -0400 |
---|---|---|
committer | Daniel Watkins <daniel.watkins@canonical.com> | 2017-08-09 10:11:42 -0400 |
commit | b95f194612029bfdb191da044e9a2b7e03ef3552 (patch) | |
tree | a7614d2cbdcf8d90a4cd659f44c0d8f40b34c4bb /requirements.txt | |
parent | 2c60aff80675c50baf1fe132b92cfd4232be0cfa (diff) | |
download | python-jenkins-job-builder-b95f194612029bfdb191da044e9a2b7e03ef3552.tar.gz python-jenkins-job-builder-b95f194612029bfdb191da044e9a2b7e03ef3552.tar.xz python-jenkins-job-builder-b95f194612029bfdb191da044e9a2b7e03ef3552.zip |
Add !include-jinja2 for rendering templates with Jinja2
This template included using !include-jinja2:
"""
{{ my_var }}
"""
is rendered the same as an existing template that looks like this:
"""
{my_var}
"""
This also allows the use of Jinja2's richer syntax:
"""
{% for test_environment in configuration.get("envs", ["py35"]) %}
tox -e {{ test_environment }}
{% endfor %}
"""
Story: 2001135
Change-Id: Ia3ee21822d6e9237f5ea46796bc8810ecac61e2c
Diffstat (limited to 'requirements.txt')
-rw-r--r-- | requirements.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/requirements.txt b/requirements.txt index 07e73a21..f0e7ab42 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,3 +7,4 @@ pbr>=1.8 # Apache-2.0 stevedore>=1.17.1 # Apache-2.0 python-jenkins>=0.4.8 fasteners +Jinja2 |