ZopePageTemplates |
UserPreferences |
The PEAK Developers' Center | FrontPage | RecentChanges | TitleIndex | WordIndex | SiteNavigation | HelpContents |
In a short session i prototyped an Adapter that creates a Bridge between ?ZopeX3 ?PageTemplates and peak.web.
This adapter make a PageTemplate adapt to I?WebMethod and therefore you can create an attribute on a class and assign it's value a ?PageTemplateFile. you can then use this attribute as "view" of the ?WebLocation you currently are.
This demo is based on the trivial_web example from the peak-sources. It replaces the def index_html with a pagetemplate.
python-source zpttest.py
cgi-script zpttest.cgi
pagetemplate index.zpt