[ZPT] Re: Get output of ZPT with Script Python
Casey Duncan
casey at zope.com
Tue Jul 6 10:44:10 EDT 2004
On Tue, 06 Jul 2004 10:11:42 -0300
David Pratt <fairwinds at eastlink.ca> wrote:
> Hi. I am wondering if there is a way to get the output of a ZPT using
>
> a Script Python without having to use urllib? I just want to do
> something else with the output of a ZPT but need to get it into a
> variable first. Any suggestions?
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.
-Casey
More information about the ZPT
mailing list