NAME
ClearPress::decorator - HTML site-wide header & footer handling
VERSION
$LastChangeRevision$
SYNOPSIS
DESCRIPTION
SUBROUTINES/METHODS
new
defaults - Accessor for default settings used in HTML headers
my $sValue = $oDecorator->defaults($sKey);
fields - All generic get/set accessors for this object
my @aFields = $oDecorator->fields();
cookie - Get/set cookies
$oDecorator->cookie(@aCookies);
my @aCookies = $oDecorator->cookie();
header - construction of HTTP and HTML site headers
http_header - construction of HTTP response headers
e.g. content-type, set-cookie etc.
my $sHTTPHeaders = $oDecorator->http_header();
site_header - construction of HTML site headers
i.e. <html>...<body>
Subclass and extend this method to provide consistent site-branding
my $sHTMLHeader = $oDecorator->site_header();
footer - pass-through to site_footer
site_footer - construction of HTML site footers
i.e. </body></html> by default
my $sHTMLFooter = $oDecorator->site_footer
username - username of authenticated user
my $sUsername = $oDecorator->username();
cgi - get/set accessor for a CGI object
$oDecorator->cgi($oCGI);
my $oCGI = $oDecorator->cgi();
session - Placeholder for a session hashref
my $hrSession = $oUtil->session();
This will not do any session handling until subclassed and overridden for a specific environment/service.
save_session - Placeholder for session saving
This will not do any session handling until subclassed and overridden for a specific environment/service.
DIAGNOSTICS
CONFIGURATION AND ENVIRONMENT
DEPENDENCIES
CGI Class::Accessor
INCOMPATIBILITIES
BUGS AND LIMITATIONS
AUTHOR
Roger Pettett, <rpettett@cpan.org>
LICENSE AND COPYRIGHT
Copyright (C) 2007 Roger Pettett
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.