PATH:
opt
/
alt
/
python37
/
share
/
doc
/
alt-python37-jinja2
/
examples
/
basic
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() )
[-] cycle.py
[edit]
[-] inheritance.py
[edit]
[-] test_loop_filter.py
[edit]
[-] test_filter_and_linestatements.py
[edit]
[-] test.py
[edit]
[-] translate.py
[edit]
[+]
..
[-] debugger.py
[edit]
[+]
templates