Задать вопрос

Тел: +7 965 3737 888

458

Просмотров

0

Ответов

Chunks template filter

A simple filter which divides an iterable (list, tupe, string, etc) in chunks, which can then be iterated over separately. A sample of the filter usage is given: a gallery template in which I needed to display images in a table, three images per row, one row for images followed by one row for their descriptions.

Вопрос полезен? Да0/Нет0
file_2328.py(1.3Кб)
None