Apache::SSI - Implement Server Side Includes in Perl
wherever you choose: AddType text/x-perl-server-parsed-html .phtml
add this to srm.conf: PerlScript Apache::SSI
in access.conf or .htaccess say: PerlResponse Apache::SSI::handler
You may wish to subclass Apache::SSI for your own extentions
package MySSI; require Apache::SSI; @ISA = qw(Apache::SSI); #embedded syntax: #<!--#something cmd=doit --> sub something { my($self, $attr) = @_; my $cmd = $attr->{cmd}; ... return $a_string; }
Apache::SSI implements the functionality of mod_include for handling server-parsed html documents. Each "command" or element is handled by an Apache::SSI method of the same name. attribute=value pairs are parsed and passed to the method in an anonymous hash.
This module supports the same directives as mod_include, see it's documentation for commands and syntax.
In addition, Apache::SSI supports the following directives:
This directive calls a perl subroutine:
Hello user from <!--#perlsub sub=remote_host -->
This module is not complete, it does not provide the full functionality of mod_include.
There is no support for xssi directives.
mod_include, mod_perl_fast, HTML::TreeBuilder(3), perl(1), Apache(3)
Doug MacEachern <dougm@osf.org>
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install Apache, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache
CPAN shell
perl -MCPAN -e shell install Apache
For more information on module installation, please visit the detailed CPAN module installation guide.