ClearPress::decorator - HTML site-wide header & footer handling
$LastChangeRevision$
my $sValue = $oDecorator->defaults($sKey);
my @aFields = $oDecorator->fields();
$oDecorator->cookie(@aCookies); my @aCookies = $oDecorator->cookie();
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();
i.e. </body></html> by default
my $sHTMLFooter = $oDecorator->site_footer
my $sUsername = $oDecorator->username();
$oDecorator->cgi($oCGI); my $oCGI = $oDecorator->cgi();
my $hrSession = $oUtil->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.
To install ClearPress, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ClearPress
CPAN shell
perl -MCPAN -e shell install ClearPress
For more information on module installation, please visit the detailed CPAN module installation guide.