jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'break'
To use {% break %} and {% continue %}, you need to add the following jinja2 extension:
app.jinja_env.add_extension('jinja2.ext.loopcontrols')
ZhangZhihui's Blog |
|
||
Copyright © 2024 ZhangZhihuiAAA
Powered by .NET 9.0 on Kubernetes |