{% from "./schema.html" import schema %} {% from "./tags.html" import tags %} {% macro message(msg, showIndex=false, index=0, open=false) %}
{% if showIndex %} #{{index}} {% endif %} {% if msg.title() %} {{msg.title()}} {{msg.uid()}} {% else %} {{msg.uid()}} {% endif %}

{{msg.summary()}}

{{ tags(msg.tags()) }}
{{ msg.description() | markdown2html | safe }}
{{ schema(msg.payload(), 'Payload', open=open) }} {% if msg.headers() %}
{{ schema(msg.headers(), 'Headers', open=open) }}
{% endif %}
{% endmacro %}