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

webmaster at zope.org webmaster at zope.org
Wed Nov 12 08:57:29 EST 2003

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


      A macro's name must be unique within the Page Template in which
      it is defined. You can define more than one macro in a template,
      but they all need to have different names.

        % Anonymous User - Nov. 5, 2003 7:08 am:
         What can be used to "signal" the end of a macro?
         If two macros are written sequentially adjacent to one another, the first does not recognize it has reached
         its end, and the result continues strait into the second. Then control is passed to the second one and it is
         written into the result also. So you get the second one twice.
         There must be a way of coding "end of macro".

        % Anonymous User - Nov. 12, 2003 8:57 am:
         A macro is created on some tag and it ends when that tag ends. e.g.:

         <p metal:define-macro.....>macro1</p><!--here macro1 stops because of the </p> tag -->
         <p metal:define-macro.....>macro2</p>

More information about the ZDP mailing list