Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 79059 invoked from network); 1 Nov 2004 20:28:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Nov 2004 20:28:26 -0000 Received: (qmail 48073 invoked by uid 500); 1 Nov 2004 20:28:26 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 48045 invoked by uid 500); 1 Nov 2004 20:28:24 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: docs@cocoon.apache.org Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 48034 invoked by uid 99); 1 Nov 2004 20:28:24 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 01 Nov 2004 12:28:23 -0800 Received: (qmail 79023 invoked from network); 1 Nov 2004 20:28:22 -0000 Received: from localhost.hyperreal.org (HELO minotaur.apache.org) (127.0.0.1) by localhost.hyperreal.org with SMTP; 1 Nov 2004 20:28:22 -0000 Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: docs@cocoon.apache.org To: docs@cocoon.apache.org Subject: =?iso-8859-1?q?=5BCocoon_Wiki=5D_Updated=3A__WoodyScratchpad?= Date: Mon, 01 Nov 2004 20:28:22 -0000 Message-ID: <20041101202822.78990.85856@minotaur.apache.org> X-Spam-Rating: localhost.hyperreal.org 1.6.2 0/1000/N X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Date: 2004-11-01T12:28:22 Editor: TimLarson Wiki: Cocoon Wiki Page: WoodyScratchpad URL: http://wiki.apache.org/cocoon/WoodyScratchpad no comment Change Log: ---------------------------------------------------------------------------= --- @@ -6,7 +6,46 @@ = Update: The implementation ideas around these (and other) concepts have mo= ved to a separate page WoodyRefactoring = -=3D Types -- id/defines/extends =3D +=3D Macros and Types -- id/defines/extends =3D + +A macro is a definition (or blueprint) consisting of a list +of widget definitions. When a macro is "expanded" it creates +instances of those widget definitions in the surrounding container. +No "macro" widget or container is created, because a macro is *only* +a definition. + +So this: +{{{ + + + ... + + + ... + + + + + + +}}} +Is equivalent to: +{{{ + + + ... + + + ... + + +}}} +Except that now you have a reusable macro named "mymacro" +that you could expand in several places in your form instead +of typing the same list of widget definition over and over +in each place where you need them. + +---- = Create a widget:[[BR]] (Note: This is unchanged from current Woody/CForms.)