<!-- BEGIN [% component.name %] -->
[% # CAP::MessageStack:
    # INCLUDE dumper.tt dump = CAP_Messages;
    FOREACH CAP_Messages;
        NEXT UNLESS
            class.match('info')  ||
            class.match('error') ||
            class.match('warning'); # any others handled in local templates
    %]
	<p class="[% class %]">
        [% class | upper -%]: [%# message %]
        [%- IF is_code_ref(message); # split into list form:
            FOREACH msg IN message %]
            <div class="indent error">* [% msg %]</div>
        [%- END; ELSE; message; END %]
    </p>
[% END %]
<!-- END [% component.name %] -->
