15

I am trying to do this:

{% for a in as %}
{% include "{(a}}.jinja"%}
{% endfor %}

But i am getting an Error, that {a}.jinja is Not found. So it seems that it does Not substitude the Variable. Why? How can i fix this?

Nathan
  • 7,099
  • 14
  • 61
  • 125

1 Answers1

24

Inside the {%%} Block, i Can use variables directly. This Works:

{% include a + ".jinja" %}
Nathan
  • 7,099
  • 14
  • 61
  • 125