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

webmaster@zope.org webmaster@zope.org
Thu, 26 Sep 2002 16:20:29 -0400

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


      You can use both METAL and TAL statements on the same
      elements. For example::

        <ul metal:define-macro="links"
            tal:repeat="link here/getLinks">
            <a href="link url"
               tal:attributes="url link/url"
               tal:content="link/name">link name</a>

        % Anonymous User - June 25, 2002 5:09 pm:
         It makes more sense to repeat the <li> than to repeat the <ul>, so tal:repeat should be inside <li> here...?

        % Anonymous User - Sep. 26, 2002 4:20 pm:
         Do you mean
         <a tal:attributes="href link/url"
            tal:content="link/name">link name</a>