[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Advanced Page Templates
webmaster@zope.org
webmaster@zope.org
Thu, 03 Oct 2002 11:16:19 -0400
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.
</p>
% 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...