in reply to RE: Re: mod_perl and ssi: mixing it up
in thread mod_perl and ssi: mixing it up
There's a module called Apache::OutputChain, and there's another called Apache::Filter. Both do sort of the same thing: they let you chain together several modules, with each successive module being able to write to/affect STDOUT.
The OP should probably take a look at these modules. In particular, Apache::Filter might work for him, in combination with Apache::SSI. Something like this in httpd.conf:
In YourModule, just print to STDOUT (or $r->print, I suppose). This output will be filtered through Apache::SSI, which (I believe) should fill in the includes.PerlModule Apache::Filter; <Files /foo> SetHandler perl-script PerlSetVar Filter On PerlHandler YourModule Apache::SSI </Files>
Mind you, I've never done this myself.
|
|---|