Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Recursive rendering? #69

Open
tcb678 opened this issue May 12, 2021 · 0 comments
Open

Recursive rendering? #69

tcb678 opened this issue May 12, 2021 · 0 comments

Comments

@tcb678
Copy link

tcb678 commented May 12, 2021

If I have a foo.yaml:

---
vendors:
   - A
   - B
   - C
questions:
   - Q1: {{ vendor }} foo
   - Q2: {{ vendor }} foo

and a foo.j2:

{% for vendor in vendors %}
{% for q in questions %}
{{ q }}
{% endfor %}
{% endfor %}

Is it possible to get j2cli to parse "vendor" as part of the for loop for q, almost as if I was doing a recursive or nested template?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant