[Templates] Filtering SSI output through Template-Toolkit

Ross Thomas ross@grinfinity.com
Thu, 23 Oct 2003 17:05:07 -0400


> use mod_perl 1 with Apache::Filter and Apache::SSI, or use one of
> the other SSI modules on CPAN to emulate mod_include.

Unfortunately the first approach isn't going to work. From the
"caveats" section of the Apache::SSI docs:

"When chaining handlers via Apache::Filter, if you use <!--#include
...--> or <!--#exec cgi=...-->, then Apache::SSI must be the last
filter in the chain. This is because Apache::SSI uses
$r->lookup_uri(...)->run to include the files, and this sends the
output through C's stdout rather than Perl's STDOUT"

-- Ross