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

[email protected]
Newsgroups gmane.comp.web.zope.zdp
Message-ID <[email protected]>
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>

_______________________________________________
ZDP maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zdp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.