« How to do RDF with Zope / ZPT | Main | Testing counters to see if they are odd or even »

April 18, 2005

Calling one page template inside another

Wow this is so much easier than calling DTML from within ZPT:

(In fact maybe you could do this with DTML too :~)

<tal:block tal:define="
dummy python: container.REQUEST.set('foaf_email', record['foaf_email']);
content_text root/new_site/contact/embedded_foafs;"
tal:replace="structure python: '<!--' + content_text + '-->'"/>

Note that I can pass it params in the REQUEST too..

Tags: ZPT

Posted by pj at April 18, 2005 03:48 PM