Добавил макросы
This commit is contained in:
parent
7a5767f527
commit
bb834a0f2d
3 changed files with 33 additions and 8 deletions
9
template3.html
Normal file
9
template3.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<div>
|
||||
{% macro hello(name) %}
|
||||
<em>hello, {{ name }}<em>
|
||||
{% endmacro %}
|
||||
|
||||
{% for name in names %}
|
||||
{{ hello(name) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue