One Hat Cyber Team
Your IP :
216.73.216.246
Server IP :
162.240.179.46
Server :
Linux vps-14493116.nutrivittasaude.com.br 5.14.0-687.17.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 22 07:21:26 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
python3-jinja2
/
examples
/
basic
/
Edit File:
test_filter_and_linestatements.py
from __future__ import print_function from jinja2 import Environment env = Environment( line_statement_prefix="%", variable_start_string="${", variable_end_string="}" ) tmpl = env.from_string( """\ % macro foo() ${caller(42)} % endmacro <ul> % for item in seq <li>${item}</li> % endfor </ul> % call(var) foo() [${var}] % endcall % filter escape <hello world> % for item in [1, 2, 3] - ${item} % endfor % endfilter """ ) print(tmpl.render(seq=range(10)))
Simpan