[Zope] PageTemplates in Python

Andrew Veitch andrew@logicalprogression.net
Sat, 08 Mar 2003 21:54:07 +0000


from Products.PageTemplates.PageTemplateFile import PageTemplateFile

then

Index_html = PageTemplateFile('www/index_html', globals())

will do the job assuming you have got a file called index_html.zpt in www. I
think index_html.pt also works.

A

On 8/3/03 9:00 pm, "Jeremy Cowgar" <jc@cowgar.com> wrote:

> I am learning zope and have made my first working product to track people,
> however I want to use PageTemplates instead of DTML. Here is an example in my
> code:
> 
> class Person:
> ...
> ...
> index_html = DTMLFile('www/index_html', globals())
> ...
> ...
> 
> right there, I want to use a page template for index_html instead of a DTML
> file, how can I do that?