ok

Mini Shell

Direktori : /proc/self/root/opt/alt/python38/share/doc/alt-python38-jinja2-3.0.3/examples/basic/
Upload File :
Current File : //proc/self/root/opt/alt/python38/share/doc/alt-python38-jinja2-3.0.3/examples/basic/cycle.py

from jinja2 import Environment

env = Environment(
    line_statement_prefix="#", variable_start_string="${", variable_end_string="}"
)
print(
    env.from_string(
        """\
<ul>
# for item in range(10)
    <li class="${loop.cycle('odd', 'even')}">${item}</li>
# endfor
</ul>\
"""
    ).render()
)

Zerion Mini Shell 1.0