[Templates] Filtering SSI output through Template-Toolkit
Perrin Harkins
perrin@elem.com
23 Oct 2003 17:12:03 -0400
On Thu, 2003-10-23 at 17:05, Ross Thomas wrote:
> > 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"
The other SSI modules on CPAN don't have this limitation.
- Perrin