[ZPT] mixing zpt and dtml

R. David Murray bitz@bitdance.com
Wed, 28 Mar 2001 15:12:40 -0500 (EST)


After reading the announcement and scanning the wiki, I've downloaded and
installed the beta.

My first question is, how do I mix dtml and zpt?  It looks like I can't
put dtml calls in a template (reasonable enough), but I also don't seem
to be able to call a DTML method and get a useful result.  The name
space doesn't seem to be getting set up correctly.  I'm doing:

    <td align="center" colspan="2" tal:content="structure here/textlinks">
      The HTML for the bottom of page text links gets inserted here.
    </td>

and in 'textlinks' I use PARENTS, and I'm getting a name error on that.
Now, I know I could easily convert this method to a zpt macro, but 
I still need to know how to call DTML successfully from TALES for
other code.

By the way, ZDebug and ZPT don't seem to cooexist entirely peacefully.
Some ZPT stuff appeared after the </html> on my traceback page.

--RDM