Apache2::Layout - mod_perl 2.0 html layout engine
Alias /layout /usr/local/apache2/htdocs
PerlSetVar LayoutFooter /footer.html
PerlSetVar LayoutHeader /header.html
PerlSetVar LayoutCSS /head.html
Apache2::Layout is a filter module that can be used to inject HTML layout into HTML documents. Very handy when trying to apply customizations to existing HTML content without needing to change them.
Only documents with a content type of "text/html" are affected - all others are passed through unaltered.
Inserts HTML comments in the output, marking where inserted content begins and ends
PerlSetVar LayoutComments On
LayoutComments has no default.
Logs debugging information about the processing. Combined with LayoutComments, will insert a debug summary as an HTML comment at the end of the filtered document.
PerlSetVar LayoutDebug On
LayoutDebug has no default.
Specifies a url to insert right before the end of the HTML <head> element, typically used to inject stylesheets into the document.
PerlSetVar LayoutCSS /css/style.css
LayoutCSS has no default.
Specifies a url to insert right after the beginning of the HTML <body> element, typically used to inject the begging of a content wrapper into the document.
PerlSetVar LayoutHeader /templates/header.html
LayoutHeader has no default.
Specifies a url to insert right before the end of the HTML <body> element, typically used to inject the end of a content wrapper into the document.
PerlSetVar LayoutHeader /templates/footer.html
LayoutFooter has no default.
This is the one and only user-visible function, it's the main filter handler.
This is alpha software, and as such has not been tested on multiple platforms or environments.
perl(1), mod_perl(3), Apache(3), mod_layout
Philippe M. Chiasson <firstname.lastname@example.org>
Copyright (c) 2007, Philippe M. Chiasson All rights reserved.
This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.
To install Apache2::Layout, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.