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-125

---------------

      Rather than using macros for chunks of presentation shared
      between pages, you can use macros to define entire pages. Slots
      make this possible.  Here's an example macro that defines an
      entire page::

        <html metal:define-macro="page">
          <head>
            <title tal:content="here/title">The title</title>
          </head>

          <body>
            <h1 metal:define-slot="headline"
                tal:content="here/title">title</h1>

            <p metal:define-slot="body">
              This is the body.  
            </p>

            <span metal:define-slot="footer">
              <p>Copyright 2001 Fluffy Enterprises</p>
            </span>

          </body>
        </html>

        % Anonymous User - Dec. 25, 2003 12:34 am:
         Can someone tell me why the above example doesn't work? The <h1> tag does not show up. There seems to be
         something wrong with the tal:content statement. The tag renders without it.

_______________________________________________
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.