| ClearPress documentation | view source | Contained in the ClearPress distribution. |
ClearPress::decorator - HTML site-wide header & footer handling
$LastChangeRevision$
my $sValue = $oDecorator->defaults($sKey);
my @aFields = $oDecorator->fields();
e.g. content-type, set-cookie etc.
my $sHTTPHeaders = $oDecorator->http_header();
i.e. <html>...<body>
Subclass and extend this method to provide consistent site-branding my $sHTMLHeader = $oDecorator->site_header();
my $sUsername = $oDecorator->username();
$oDecorator->cgi($oCGI); my $oCGI = $oDecorator->cgi();
my $hrSession = $oDecorator->session(); This will not do any session handling until subclassed and overridden for a specific environment/service.
This will not do any session handling until subclassed and overridden for a specific environment/service.
Roger Pettett, <rpettett@cpan.org>
Copyright (C) 2008 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.
| ClearPress documentation | view source | Contained in the ClearPress distribution. |