Author: dlr
Date: Tue Sep 27 01:07:17 2005
New Revision: 291855

URL: http://svn.apache.org/viewcvs?rev=291855&view=rev
Log:
* xdocs/docs/user-guide.xml
  (StringLiterals): Renamed from "String Literals" to "Literals" (the
   label, not the anchor).  Added a section on the #literal()
   directive.

Issue: VELOCITY-358

Modified:
    jakarta/velocity/core/trunk/xdocs/docs/user-guide.xml

Modified: jakarta/velocity/core/trunk/xdocs/docs/user-guide.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/velocity/core/trunk/xdocs/docs/user-guide.xml?rev=291855&r1=291854&r2=291855&view=diff
==============================================================================
--- jakarta/velocity/core/trunk/xdocs/docs/user-guide.xml (original)
+++ jakarta/velocity/core/trunk/xdocs/docs/user-guide.xml Tue Sep 27 01:07:17 
2005
@@ -43,7 +43,7 @@
 <li><a href="#Directives">Directives</a>
     <ol>
         <li><a href="#Set">Set</a></li>
-        <li><a href="#StringLiterals">String Literals</a></li>
+        <li><a href="#StringLiterals">Literals</a></li>
         <li><a href="#Conditionals">If-Else Statements</a>
             <ol>
                 <li><a href="#RelationalandLogicalOperators">Relational and 
Logical
@@ -1004,7 +1004,7 @@
     directive does not have an <em>#end</em> statement.
  </p>
 
-<a name="StringLiterals"><strong>String Literals</strong></a>
+<a name="StringLiterals"><strong>Literals</strong></a>
 
  <p>
     When using the <em>#set</em> directive, string literals that are
@@ -1052,6 +1052,31 @@
     editing <code>velocity.properties</code> such that
     <code>stringliterals.interpolate=false</code>.
  </p>
+
+ <p>
+    Alternately, the <em>#literal</em> script element allows the
+    template designer to easily use large chunks of uninterpreted
+    content in VTL code.  This can be especially useful in place of <a
+    href="#EscapingVTLDirectives">escaping</a> multiple directives.
+ </p>
+
+<source><![CDATA[
+#literal()
+#foreach ($woogie in $boogie)
+  nothing will happen to $woogie
+#end  
+#end  
+]]></source>
+
+    <p>
+    Renders as:
+    </p>
+
+<source><![CDATA[
+#foreach ($woogie in $boogie)
+  nothing will happen to $woogie
+#end  
+]]></source>
 </section>
 
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to