4. Loop ControlsΒΆ

Import name: jinja2.ext.loopcontrols

This extension adds support for break and continue in loops. After enabling, Jinja2 provides those two keywords which work exactly like in Python.