{% set handled = false %} {% for block in handle_event('ViewAttachment', {'attachment': attachment, 'note': note}) %} {% set handled = true %}