Skip to content

Instantly share code, notes, and snippets.

@alexbaumgertner
Created May 23, 2013 16:22
Show Gist options
  • Save alexbaumgertner/5637339 to your computer and use it in GitHub Desktop.
Save alexbaumgertner/5637339 to your computer and use it in GitHub Desktop.
Шаблон с подготовкой тестовых данных
{# Шаблон Фотоальбомы /photoalbums #}
{# TODO: remove test data: #}
{% set records = [] %}
{% set record = [ {'image': '/uploads/photoalbums/fix-and-replay/1_small.jpg', 'url': 'photoalbum', 'title': 'Фотоальбом', 'total': 25} ] %}
{% for i in 1..10 %}
{% set records = records|merge(record) %}
{% endfor %}
{{ app.request.baseUrl }}
<div class="photoalbums">
<h3 class="photoalbums__header i-font i-font_face_hermes">Фотографии</h3>
<ul class="photoalbums__list">
{% for record in records %}
<li class="photoalbums__item">
{{ this.renderPartial('_indexItem', { 'photoalbum': record }) }}
</li>
{% endfor %}
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment