[Zope] Re: Page Templates in products
Paul Tiemann
pault@center7.com
17 Sep 2002 13:00:21 -0600
Regarding the HTMLFile class, allowing you to store product dtml files
on the local filesystem:
>So my question is, is there a way to do a similar thing with the source
>of the file being a page template rather than DTML?
Sure thing, just like this:
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
myZPT = PageTemplateFile("path/to/file", globals())
Which will take file.zpt from the filesystem just like HTMLFile() does
for .dtml files...
;) Paul