File size: 265 Bytes
5fa1a76
 
 
 
 
 
 
1
2
3
4
5
6
7
You can also use the following tips to convert your code to Jinja:
For loops
For loops in Jinja look like this:
{% for message in messages %}
{{ message['content'] }}
{% endfor %}
Note that whatever's inside the {{ expression block }} will be printed to the output.