{% apply spaceless %} {# ------------------------ #} {# Available Variables #} {# ------------------------ #} {# id, element, commentsQuery, settings #} {# ------------------------ #} {% if comment is defined %} {% set activeComment = comment %} {% endif %}
{% for comment in commentsQuery.all() %} {% include 'comment' %} {% endfor %}
{% if settings.canComment(element) %} {% include 'form' %} {% endif %}
{% endapply %}