Iterating over nested lists
The simplest way to ‘nest’ loops is to avoid nesting loops, just format the data to achieve the same result.
You can use Jinja2 expressions to iterate over complex lists. For example, a loop can combine nested lists, which simulates a nested loop.