[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Advanced Page Templates

webmaster@zope.org webmaster@zope.org
Fri, 27 Dec 2002 19:45:33 -0500

A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/AdvZPT.stx#4-2


        This feature is useful when you are inserting a fragment of
        HTML or XML that is stored in a property or generated by
        another Zope object.  For instance, you may have news items
        that contain simple HTML markup such as bold and italic text
        when they are rendered, and you want to preserve this when
        inserting them into a "Top News" page.  In this case, you
        might write::

          <p tal:repeat="newsItem here/topNews"
             tal:content="structure newsItem">
            A news item with<code>HTML</code> markup.

          % Anonymous User - July 25, 2002 4:53 am:
           > A news item with<code>HTML</code> markup.

           Insert a space after "with".

          % Anonymous User - Oct. 3, 2002 11:16 am:
           I'm unclear as to the necessity of the <code> tag and how it operates. Is this simply some of the text that
           is substituted by the tal:repeat tag, or is it its own entity? This is confusing...

          % Anonymous User - Nov. 28, 2002 6:32 pm:
           the <code> tag is just there to show that you are inserting a newsItem with html in, it could have been <b>
           or <i> etc etc. What was actually on that line is kinda irrelivant though as (as far as I understand it) that
           whole line is replaced with whatever newsItem is

          % Anonymous User - Dec. 27, 2002 7:45 pm:
           It will only show up when you see the code in a browser.