GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DANCER2::PLUGIN::LOGREPORT::MESSAGE (3)

.ds Aq ’

NAME

Dancer2::Plugin::LogReport::Message - extended Log::Report message class

CONTENTS

INHERITANCE



 Dancer2::Plugin::LogReport::Message
   is a Log::Report::Message



SYNOPSIS



  In your template:

  [% FOR message IN messages %]
    <div class="alert alert-[% message.bootstrap_color %]">
      [% message.toString | html_entity %]
    </div>
  [% END %]



DESCRIPTION

[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-><B>bootstrap_colorB>() Get a suitable bootstrap context color for the message. This can be used as per the SYNOPSIS.

success is used for Dancer2::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-><B>reasonB>() Get or set the reason of a message

DETAILS

Extends DETAILS in Log::Report::Message.

OVERLOADING

Extends OVERLOADING in Log::Report::Message.
overload: <B>as B>$function<B>B> Inherited, see OVERLOADING in Log::Report::Message
overload: <B>concatenationB> Inherited, see OVERLOADING in Log::Report::Message
overload: <B>stringificationB> Inherited, see OVERLOADING in Log::Report::Message

SEE ALSO

This module is part of Log-Report distribution version 1.13, built on February 03, 2016. Website: http://perl.overmeer.net/log-report/

LICENSE

Copyrights 2007-2016 by [Mark Overmeer]. For other contributors see ChangeLog.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DANCER2::PLUGIN::LOGREPORT::MESSAGE (3) 2016-02-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.