--On 12. März 2006 18:00:27 -0800 David <[EMAIL PROTECTED]> wrote:

John Poltorak wrote:

I'm having difficulty figuring out how to make METAL macros reusable.
Hi John,

This is about as simple as it gets (sorry if i misunderstood your

(1) Name this page template ptMacros

         This is Page Template <em tal:content="template/id">template

<p metal:define-macro="copyright">
  Copyright 2001, <em>Foobar</em> Inc.

(2) name this page template ptTest
     This is Page Template <em tal:content="template/id">template id</em>.

<p metal:use-macro="container/ptMacros/macros/copyright">
 <b metal:fill-slot="name">Copyright goes here</b>

...which is basically the same as in the Zope Book:



  -   Andreas Jung            ZOPYX Ltd. & Co KG                        -
 -   E-mail: [EMAIL PROTECTED]   Web: www.zopyx.com, www.zopyx.de         -

Attachment: pgphKRHra2mDZ.pgp
Description: PGP signature

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to