diff options
author | Alexis de Talhouët <adetalhouet89@gmail.com> | 2019-06-18 19:43:50 -0400 |
---|---|---|
committer | Alexis de Talhouët <adetalhouet89@gmail.com> | 2019-06-21 01:10:53 +0000 |
commit | 7ad72c86fbd10888a849eed2b00dc9fddadef5aa (patch) | |
tree | 28ea065a77e3ce60b14603b86748aeed87f9d80b /ms/controllerblueprints/modules/blueprint-core/src/test/resources/templates/master.jinja | |
parent | 091bba704d8e9137b9bca9ed02d139539aa2ac53 (diff) |
Add Jinja2 custom ResourceLocator
This will allow to include template within template to create
template hierarchy
Change-Id: I21c5deaf51d391e1a51b9863a905c26b1891db16
Issue-ID: CCSDK-1417
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
Diffstat (limited to 'ms/controllerblueprints/modules/blueprint-core/src/test/resources/templates/master.jinja')
-rw-r--r-- | ms/controllerblueprints/modules/blueprint-core/src/test/resources/templates/master.jinja | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ms/controllerblueprints/modules/blueprint-core/src/test/resources/templates/master.jinja b/ms/controllerblueprints/modules/blueprint-core/src/test/resources/templates/master.jinja new file mode 100644 index 000000000..1137b2595 --- /dev/null +++ b/ms/controllerblueprints/modules/blueprint-core/src/test/resources/templates/master.jinja @@ -0,0 +1,7 @@ +{%- for i in range(occurrence) %} +<config> +{% include "templates/isis.jinja" %} +{% include "templates/interface.jinja" %} +</config> +{{ "]]>]]" if not loop.last }} +{%- endfor %}
\ No newline at end of file |