From a7c70594d6b9d8c4b1ef891bbe6a72b42d6bc741 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 30 Dec 2010 15:49:26 +0100 Subject: [PATCH] Dokumentation --- SL/Helper/Flash.pm | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/SL/Helper/Flash.pm b/SL/Helper/Flash.pm index 80742328d..a4ad69177 100644 --- a/SL/Helper/Flash.pm +++ b/SL/Helper/Flash.pm @@ -20,3 +20,47 @@ sub render_flash { } 1; + +__END__ + +=head1 NAME + +SL::Helpers::Flash - helper functions for storing messages to be +displayed to the user + +=head1 SYNOPSIS + +The flash is a store for messages that should be displayed to the +user. Each message has a category which is usually C, +C or C. The messages in each category are grouped and +displayed in colors appropriate for their severity (e.g. errors in +red). + +Messages are rendered either by calling the function C +or by including the flash sub-template from a template with the +following code: + + [%- INCLUDE 'common/flash.html' %] + +=head1 FUNCTIONS + +=over 4 + +=item C + +Stores a message for the given category. The category can be either +C, C or C. C can also be used as an +alias for C. + +=item C + +Outputs the flash message by parsing the C template +file. + +=back + +=head1 AUTHOR + +Moritz Bunkus Em.bunkus@linet-services.deE + +=cut -- 2.20.1