Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
jinja2でしばらく(x <y)を行うにはどうすればよいですか?jinja2のドキュメントを見たことがありますが、配列の宣言された変数のループのみをサポートしているようで、while()はまったくサポートされていません。
Jinja2で最も近い代替手段は、 for with rangeを使用することだと思います:
{% range number from 3 to 6 %} {{ number }} (...) {% endrange %}
また、プログラムから変数を渡して、ループで使用することができます。