In your template: [% FOR message IN messages %] <div class="alert alert-[% message.bootstrap_color %]"> [% message.toString | html_entity %] </div> [% END %]
See SYNOPSIS in Log::Report::Message
[The Dancer2 plugin was contributed by Andrew Beverley]
This class is an extension of Log::Report::Message, with functions specifically designed for Dancer applications. Minimal functions are provided (currently only aimed at Bootstrap), but ideas for new ones are welcome.
See DESCRIPTION in Log::Report::Message
See OPTIONS and VARIABLES in Log::Report::Message
See Interpolating in Log::Report::Message
See Interpolation of VARIABLES in Log::Report::Message
See Interpolation of OPTIONS in Log::Report::Message
See Handling white-spaces in Log::Report::Message
See Avoiding repetative translations in Log::Report::Message