cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@cocoon.apache.org
Subject [Cocoon Wiki] Updated: WoodyScratchpad
Date Mon, 01 Nov 2004 20:52:59 GMT
   Date: 2004-11-01T12:52:58
   Editor: TimLarson <tim@keow.org>
   Wiki: Cocoon Wiki
   Page: WoodyScratchpad
   URL: http://wiki.apache.org/cocoon/WoodyScratchpad

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -105,6 +105,39 @@
   </fd:field>
 </fd:struct>
 }}}
+
+This is all well and nice, but if your customizations are only used in one place
+it would be nice to be able to specify your changes right where you use them.
+
+So this:
+{{{
+<fd:macro define="mymacro">
+  <fd:field id="myfield">
+    ...
+  </fd:field>
+  <fd:field id="yourfield">
+    ...
+  </fd:field>
+</fd:macro>
+
+<fd:struct id="yourstruct">
+  <fd:macro expand="yourmacro">
+    <fd:del>
+      <fd:field id="myfield"/>
+    </fd:del>
+  </fd:macro>
+</fd:struct>
+}}}
+would be equivalent to:
+{{{
+<fd:struct id="yourstruct">
+  <fd:field id="yourfield">
+    ...
+  </fd:field>
+</fd:struct>
+}}}
+
+----
 ----
 
 Create a widget:[[BR]]

Mime
View raw message