Добавил макросы

This commit is contained in:
Федор Подлеснов 2015-12-10 16:09:22 +03:00
parent 7a5767f527
commit bb834a0f2d
3 changed files with 33 additions and 8 deletions

9
template3.html Normal file
View file

@ -0,0 +1,9 @@
<div>
{% macro hello(name) %}
<em>hello, {{ name }}<em>
{% endmacro %}
{% for name in names %}
{{ hello(name) }}
{% endfor %}
</div>