[ZPT] Re: Get output of ZPT with Script Python
Casey Duncan
casey at zope.com
Tue Jul 6 11:10:20 EDT 2004
On Tue, 06 Jul 2004 15:59:10 +0100
Philip Kilner <phil at xfr.co.uk> wrote:
> Hi Casey,
>
> Casey Duncan wrote:
> > Page templates are callable objects (like methods). Just call it in
> > the context of the object you want to apply the template to and it
> > will return the rendered output.
> >
>
> Thinking about my issue earlier where the PT's source was rendered
> instead of the output when I changed the content type of the PT to
> "text/csv", is there a reference as to what /content types/ wouldn't
> render?
I'm not aware of this side-affect, although I have never set the
content-type to anything other than text/html or text/xml.
> (or am I missing something more subtle?)
I don't fully understand what you are getting at above, so I'm not sure.
-Casey
More information about the ZPT
mailing list