{% try %} {% if not particle %} {% set enabled = gantry.config.get('particles.' ~ segment.type ~ '.enabled', 1) %} {% set particle = gantry.config.getJoined('particles.' ~ segment.type, segment.attributes) %} {% endif %} {% set html %} {% if enabled and (segment.attributes.enabled is null or segment.attributes.enabled) %} {% include ['particles/' ~ segment.subtype|default('position') ~ '.html.twig', '@particles/' ~ segment.subtype|default('position') ~ '.html.twig'] %} {% endif %} {% endset %} {%- if html|trim %} {% if gantry.debug and segment.attributes.key %}{% endif %}
{{ html|raw }}
{% if gantry.debug and segment.attributes.key %}{% endif %} {% endif %} {% catch %}
Error while rendering {{ segment.subtype|default('position') }}.
{% endtry %}