Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set columns = 4 %}
- {% for name in names %}
- {% if loop.first or loop.index0 is divisibleby(columns) %}
- <ul>
- {% endif %}
- <li>{{ name }}</li>
- {% if loop.last or loop.index is divisibleby(columns) %}
- </ul>
- {% endif %}
- {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement