summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/template/templates/72615-macro.j2
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/template/templates/72615-macro.j2')
-rw-r--r--test/integration/targets/template/templates/72615-macro.j28
1 files changed, 8 insertions, 0 deletions
diff --git a/test/integration/targets/template/templates/72615-macro.j2 b/test/integration/targets/template/templates/72615-macro.j2
new file mode 100644
index 0000000..328c271
--- /dev/null
+++ b/test/integration/targets/template/templates/72615-macro.j2
@@ -0,0 +1,8 @@
+{% macro print_context_vars(value) %}
+{{ foo }}
+{{ value }}
+{% set foo = "template-nested-level-foo" %}
+{% set bar = "template-nested-level-bar" %}
+{% from '72615-macro-nested.j2' import print_context_vars_nested with context %}
+{{ print_context_vars_nested(bar) }}
+{% endmacro %}