Dancer2::Plugin::LogReport::Message3pm
Extended log::report message class
Usage
In your template:[% FOR message IN messages %]<div class="alert alert-[% message.bootstrap_color %]">[% message.toString | html_entity %]</div>[% END %]
Inheritance
Dancer2::Plugin::LogReport::Messageis a Log::Report::Message
Overview
[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.
Extends "DESCRIPTION" in Log::Report::Message.
Methods
Extends "METHODS" in Log::Report::Message.
- $obj->
bootstrap_color() -
Get a suitable bootstrap context color for the message. This can be used as per the SYNOPSIS.
"success"is used forDancer2::Plugin::LogReport::success()messages,"info"colors are used for messages"notice"and below,"warning"is used for"warning"and"mistake","danger"is used for all other messages
- $obj->
reason() -
Get or set the reason of a message
Details
Extends "DETAILS" in Log::Report::Message.
Overloading
Extends "OVERLOADING" in Log::Report::Message.
overload: as $function
|
Inherited, see "OVERLOADING" in Log::Report::Message |
|---|---|
overload:
|
Inherited, see "OVERLOADING" in Log::Report::Message |
overload:
|
Inherited, see "OVERLOADING" in Log::Report::Message |
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.