jinja2.runtime.LoopContext

class jinja2.runtime.LoopContext(iterable, recurse=None, depth0=0)[source]

A loop context for dynamic iteration.

Methods

__init__(iterable[, recurse, depth0])
cycle(*args) Cycles among the arguments with the current loop index.