Loop ControlsLoop ControlsImport name:jinja2.ext.loopcontrols This extension adds support for break and continue in loops. Afterenabling, Jinja2 provides those two keywords which work exactly like inPython.