=head1 NAME Apache::SSIChain - do SSI on other modules' output =cut package Apache::SSIChain; use Apache::SSI; use Apache::OutputChain; use vars qw( $VERSION @ISA ); $VERSION = 0.07; @ISA = qw( Apache::OutputChain ); my $html_parser; sub handler { my $r = shift; $html_parser = new Apache::SSI('', $r); Apache::OutputChain::handler($r, __PACKAGE__); } sub PRINT { my $self = shift; $html_parser->text(join '', @_); $self->Apache::OutputChain::PRINT($html_parser->get_output()); } 1; =head1 SYNOPSIS In the conf/access.conf file of your Apache installation add lines like SetHandler perl-script PerlHandler Apache::OutputChain Apache::SSIChain Apache::PassHtml =head1 DESCRIPTION This module uses B and B modules to create a filtering module that takes output from other modules (B, B), parses SSI tags and sends the result to Apache, or maybe to other module (B by Andreas Koenig): SetHandler perl-script PerlHandler Apache::OutputChain Apache::GzipChain Apache::SSIChain Apache::PassHtml Or you can do SSI on CGI's: PerlSendHeader On SetHandler perl-script PerlHandler Apache::OutputChain Apache::SSIChain Apache::PassExec Options ExecCGI or even on modules processed by Apache::Registry: PerlSendHeader On SetHandler perl-script PerlHandler Apache::OutputChain Apache::SSIChain Apache::Registry Options ExecCGI =head1 VERSION 0.07 =head1 AUTHOR (c) 1998--1999 Jan Pazdziora, adelton@fi.muni.cz, http://www.fi.muni.cz/~adelton/ at Faculty of Informatics, Masaryk University, Brno, Czech Republic =head1 SEE ALSO Apache::SSI(3); Apache::GzipChain(3); mod_perl(1); www.apache.org, www.perl.com. =cut