velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r691413 - /velocity/engine/trunk/xdocs/docs/developer-guide.xml
Date Tue, 02 Sep 2008 22:40:23 GMT
Author: nbubna
Date: Tue Sep  2 15:40:23 2008
New Revision: 691413

URL: http://svn.apache.org/viewvc?rev=691413&view=rev
Log:
document new 'strict mode' options

Modified:
    velocity/engine/trunk/xdocs/docs/developer-guide.xml

Modified: velocity/engine/trunk/xdocs/docs/developer-guide.xml
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/xdocs/docs/developer-guide.xml?rev=691413&r1=691412&r2=691413&view=diff
==============================================================================
--- velocity/engine/trunk/xdocs/docs/developer-guide.xml (original)
+++ velocity/engine/trunk/xdocs/docs/developer-guide.xml Tue Sep  2 15:40:23 2008
@@ -1647,6 +1647,12 @@
 </p>
 
 <p>
+<code>directive.foreach.skip.invalid = true</code><br/>
+Tells #foreach to simply skip rendering when the object it is
+iterating over is not or cannot produce a valid Iterator.
+</p>
+
+<p>
 <strong>#set() Directive</strong>
 </p>
 
@@ -1681,6 +1687,18 @@
 </p>
 
 <p>
+<strong>Math</strong>
+</p>
+
+<p>
+<code>resource.manager.logwhenfound = true</code><br/>
+Switch to control logging of 'found' messages from resource manager.
+When a resource is found for the first time, the resource name
+and classname of the loader that found it will be noted in the
+runtime log.
+</p>
+
+<p>
 <strong>Resource Management</strong>
 </p>
 
@@ -1848,7 +1866,7 @@
 templates written before this feature became available.
 </p>
 
-    <p>
+<p>
 <strong>String Interpolation</strong>
 </p>
 
@@ -1862,6 +1880,19 @@
 </p>
 
 <p>
+<strong>Math</strong>
+</p>
+
+<p>
+<code>runtime.strict.math = false</code><br/>
+Affects all math operations in VTL. If changed to true, this will cause
+Velocity to throw a MathException whenever one side of a math operation
+has a null value (e.g. <code>#set( $foo = $null * 5 )</code>) or when
+trying to divide by zero.  If this value is left <code>false</code>,
+then rendering will continue and that math operation will be ignored.
+</p>
+
+<p>
 <strong>Parser Configuration</strong>
 </p>
 <p>



Mime
View raw message