<ul class="pagination">
    {% for pagination_item in pagination_tree %}

        <li class="{{ pagination_item['class'] }}">
            {% if pagination_item['link'] != false %}
                <a  href="{{ pagination_item['link'] }}"
                    title="{{ pagination_item['title'] }}"
                {% if pagination_item['rel'] is not empty %}
                    rel="{{ pagination_item['rel'] }}"
                {% endif %}
                >
            {% endif %}
                {{ pagination_item['title'] | raw }}
            {% if pagination_item['link'] != false %}
                </a>
            {% endif %}
        </li>

    {% endfor %}
</ul>