/
usr
/
share
/
doc
/
python3-jinja2
/
examples
/
rwbench
/
jinja
/
/usr/share/doc/python3-jinja2/examples/rwbench/jinja
mkdir
upload
Name
Size
Mode
Actions
helpers.html
443
0644
edit
dl
rm
index.html
1024
0644
edit
dl
rm
layout.html
875
0644
edit
dl
rm
Edit:
/usr/share/doc/python3-jinja2/examples/rwbench/jinja/helpers.html
(443B)
{% macro input_field(name, value='', type='text') -%} <input type="{{ type }}" value="{{ value|e }}" name="{{ name }}"> {%- endmacro %} {% macro textarea(name, value='', rows=10, cols=40) -%} <textarea name="{{ name }}" rows="{{ rows }}" cols="{{ cols }}">{{ value|e }}</textarea> {%- endmacro %} {% macro form(action='', method='post') -%} <form action="{{ action|e }}" method="{{ method }}">{{ caller() }}</form> {%- endmacro %}
Save
{% macro input_field(name, value='', type='text') -%}
{%- endmacro %} {% macro textarea(name, value='', rows=10, cols=40) -%}
{{ value|e }}
{%- endmacro %} {% macro form(action='', method='post') -%}
{{ caller() }}
{%- endmacro %}