[ZPT] Re: Show ZPT Code

Will Smith witisi at yahoo.com
Tue Jul 13 10:12:29 EDT 2004


Andreas Jung wrote:

> look at the ZPT reference! hint: 'structure'
> 
> -aj
> 


OK, I don't get it...

1. First Try

   <p tal:content="structure string:<b>bold text</b>"></p>
   is the same as
   <p><b>bold text</b></p>

   instead of
   <p>&lt;b;&gt;bold text&lt;/b&gt;</p>

2. Second Try

   If I create a second template

   my_template
     <h1>Test</h1>

   Then call the template with "structure"
   <p tal:content="structure here/my_template"></p>
   I get
   <p><h1>Test</h1></p>
   instead of
   <p>&lt;h1;&gt;Test&lt;/h1&gt;</p>


Any additional help would be appreciated.  I see all the code snippets 
on the zope site, and cannot imagine they where all entered by hand.

Thanks,
Will Smith




More information about the ZPT mailing list