Re: [Templates] mod_perl + cookies + TT2 process = my problem

[prev] [thread] [next] [Date index for 2004/12/13]

From: Perrin Harkins
Subject: Re: [Templates] mod_perl + cookies + TT2 process = my problem
Date: 18:45 on 13 Dec 2004
On Mon, 2004-12-13 at 18:48 +0100, Tosh Cooey wrote:
> Any idea why the output from TT2's "process" call isn't intercepted while a 
> standard print "Content-type: text/html\n\n;" is?  Is the output redirected to 
> <STDOUT> rather than via 'print' ?

It shouldn't matter, but you could tell TT to use $r for output. 

> And of course is there an elegant way of sending headers per individual template?

Put the type in the template's META data and send the header yourself
before sending the rest of the template content.  Or just turn off
header parsing and send the headers manually.

- Perrin


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

Re: [Templates] mod_perl + cookies + TT2 process = my problem
Perrin Harkins 18:45 on 13 Dec 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52