[Templates] Filtering SSI output through Template-Toolkit

Perrin Harkins perrin@elem.com
23 Oct 2003 16:41:55 -0400


On Thu, 2003-10-23 at 16:34, Ross Thomas wrote:
> Strange as it might sound, I have a need to filter SSI output through
> TT. That is, given a .shtml document I'd like to run mod_include over
> it, and then process the output with TT before it gets sent to the
> browser.

If you can be more specific about why you need to do this, we might be
able to suggest a better approach.  However, if you really have to do it
this way, your choices are to use mod_perl 2 so you can use the filter
API, use mod_perl 1 with Apache::Filter and Apache::SSI, or use one of
the other SSI modules on CPAN to emulate mod_include.

- Perrin