[ZPT] Usage example for standalone PageTemplates?

Evan Simpson evan@digicool.com
Fri, 30 Mar 2001 09:42:58 -0500


From: "Jim Fulton" <jim@digicool.com>
> > You can't reasily use the PageTemplates code, its execution engine is
> > too closely tied to Zope.  But TAL runs completely stand-alone.  The
> > best example is the TAL/driver.py script.
>
> I suggest that we plan to provide a zope-independent page-template
> facility. It would, of course, not do any security.  I think the exercise
> may suggest ways to refactor the existing code, or not. In any case.

Actually, ZPT is already factored to allow non-Zope use.  As long as you
don't call initialize() in the __init__ or import ZopePageTemplate, it works
find with only bits of Zope technology (see unit tests).

Cheers,

Evan @ digicool