1Dancer2::Plugin::LogRepUosretr::CMoenstsraigbeu(t3e)d PeDralncDeorc2u:m:ePnltuagtiino:n:LogReport::Message(3)
2
3
4

NAME

6       Dancer2::Plugin::LogReport::Message - extended Log::Report message
7       class
8

INHERITANCE

10        Dancer2::Plugin::LogReport::Message
11          is a Log::Report::Message
12

SYNOPSIS

14         In your template:
15
16         [% FOR message IN messages %]
17           <div class="alert alert-[% message.bootstrap_color %]">
18             [% message.toString | html_entity %]
19           </div>
20         [% END %]
21

DESCRIPTION

23       [The Dancer2 plugin was contributed by Andrew Beverley]
24
25       This class is an extension of Log::Report::Message, with functions
26       specifically designed for Dancer applications. Minimal functions are
27       provided (currently only aimed at Bootstrap), but ideas for new ones
28       are welcome.
29
30       Extends "DESCRIPTION" in Log::Report::Message.
31

METHODS

33       Extends "METHODS" in Log::Report::Message.
34
35       $obj->bootstrap_color()
36           Get a suitable bootstrap context color for the message. This can be
37           used as per the SYNOPSIS.
38
39           "success" is used for Dancer2::Plugin::LogReport::success()
40           messages, "info" colors are used for messages "notice" and below,
41           "warning" is used for "warning" and "mistake", "danger" is used for
42           all other messages
43
44       $obj->reason()
45           Get or set the reason of a message
46

DETAILS

48       Extends "DETAILS" in Log::Report::Message.
49

OVERLOADING

51       Extends "OVERLOADING" in Log::Report::Message.
52
53       overload: as $function
54           Inherited, see "OVERLOADING" in Log::Report::Message
55
56       overload: concatenation
57           Inherited, see "OVERLOADING" in Log::Report::Message
58
59       overload: stringification
60           Inherited, see "OVERLOADING" in Log::Report::Message
61

SEE ALSO

63       This module is part of Log-Report distribution version 1.32, built on
64       January 26, 2021. Website: http://perl.overmeer.net/CPAN/
65

LICENSE

67       Copyrights 2007-2021 by [Mark Overmeer <markov@cpan.org>]. For other
68       contributors see ChangeLog.
69
70       This program is free software; you can redistribute it and/or modify it
71       under the same terms as Perl itself.  See http://dev.perl.org/licenses/
72
73
74
75perl v5.32.0                      2021-01D-a2n6cer2::Plugin::LogReport::Message(3)
Impressum