Фильтры и Циклы

This commit is contained in:
a.a.pozdina 2015-12-02 00:39:27 +03:00
parent 8a2eead4a0
commit f02a0bac42
3 changed files with 20 additions and 30 deletions

View file

@ -1,21 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
{% for file in style %}
<link type="text/css" rel="stylesheet" href="{{ file }}"/>
{% endfor %}
</head>
<body>
{% if content %}
{{ content }}
{% endif %}
{% for file in script %}
<script type="text/javascript" src="{{ file.name }}"></script>
{% endfor %}
</body>
</html>
<h1>{{ pagename|title }}</h1>
<ul>
{% for author in authors %}
<li{% if loop.first %} class="first"{% endif %}>
{{ author }}
</li>
{% endfor %}
</ul>