[Templates] Filtering SSI output through Template-Toolkit

Ross Thomas ross@grinfinity.com
Thu, 23 Oct 2003 16:34:30 -0400


Despite being a long-time list lurker and user of Template-Toolkit
I've never needed to ask a question before, but I do now, so I will.
First off, though, I must congratulate Andy on what is without a doubt
the best templating system available for free or otherwise. My job
would be a lot harder without it.

That said, here's my question:

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. I realize this isn't specifically a TT question, but I
thought I'd ask here before investigating and joining other mailing
lists. I have a feeling that if this is possible at all it'll probably
involve a custom Apache module.

Pointers to pertinent information would be greatly appreciated.

-- Ross