[Templates] CGI/TT vs SSI

Perrin Harkins perrin@elem.com
08 Oct 2003 15:20:24 -0400


On Wed, 2003-10-08 at 15:12, Mark Mills wrote:
> 6. Maybe you could modify the TT handler so that when it is called
> through a sub-request under Apache, it returns the just the raw
> body without any TT wrapping or headers.

TT is not a handler, Apache::Template is, and it just calls
$template->process() after setting up some config stuff.  When we wanted
to use the same navbar templates in TT and SSI pages at eToys, I added a
<!-- #template --> call to Apache::SSI that called process(), and we
were able to share those templates.

- Perrin