velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wgl...@apache.org
Subject svn commit: r576692 - /velocity/docs/src/docbook/userguide/VelocityUsersGuide.xml
Date Tue, 18 Sep 2007 04:44:32 GMT
Author: wglass
Date: Mon Sep 17 21:44:31 2007
New Revision: 576692

URL: http://svn.apache.org/viewvc?rev=576692&view=rev
Log:
updated docs for macros in accordance with VELOCITY-362

Modified:
    velocity/docs/src/docbook/userguide/VelocityUsersGuide.xml

Modified: velocity/docs/src/docbook/userguide/VelocityUsersGuide.xml
URL: http://svn.apache.org/viewvc/velocity/docs/src/docbook/userguide/VelocityUsersGuide.xml?rev=576692&r1=576691&r2=576692&view=diff
==============================================================================
--- velocity/docs/src/docbook/userguide/VelocityUsersGuide.xml (original)
+++ velocity/docs/src/docbook/userguide/VelocityUsersGuide.xml Mon Sep 17 21:44:31 2007
@@ -2480,18 +2480,10 @@
             </question>
 
             <answer>
-              <para><emphasis>No</emphasis>. Currently, Velocimacros must
be
-              defined before they are first used in a template. This means
-              that your <literal>#macro</literal> declarations should come
-              before using the Velocimacros.</para>
-
-              <para>This is important to remember if you try to
-              <literal>#parse</literal> a template containing inline
-              <literal>#macro</literal> directives. Because the
-              <literal>#parse</literal> happens at runtime, and the parser
-              decides if a Velocimacro-looking element in the template is a
-              Velocimacro at parsetime, parseing a set of Velocimacro
-              declarations won't work as expected. To get around this, simply
+              <para><emphasis>Yes</emphasis>. Velocimacros may be defined
in a file that
+              is loaded into a template with <literal>#macro</literal>.  This
is especially
+              helpful if you wish to have a library of macros used by multiple templates.
 
+              As an alternative you may also 
               use the <literal>velocimacro.library</literal> facility to have
               Velocity load your Velocimacros at startup.</para>
             </answer>



Mime
View raw message