[Zope-DB] How to call an DTML methode within an Page template

Dieter Maurer dieter@handshake.de
Thu, 6 Mar 2003 22:02:08 +0100

Kerstin Petersen wrote at 2003-3-6 13:50 +0100:
 > I created an page template with an table. This table contains some 
 > static elements, like graphic, menue and should contain one dynamic cell 
 > with content . I have some dtml-methods, that themselve call SQL 
 > Methods. My content is stored in a database.
 > I would like to call my dtml-method within the page template, but with
 > <div tal content:"here/MyDTML Method"> </div>
 > I get the html-text with any information.

You indicate by the "structure" prefix that a value should not
be HTML quoted (as tells you the documentation ;-) ).

This means, you use:

     <div tal:content="structure here/MyDTML Method">...</div>