ZhangZhihui's Blog  

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')

 

posted on 2020-05-22 11:52  ZhangZhihuiAAA  阅读(305)  评论(0编辑  收藏  举报