VELOCITY-102 document static utility class support

git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/trunk@687133 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/xdocs/docs/developer-guide.xml b/xdocs/docs/developer-guide.xml
index ebcef93..9a68e40 100644
--- a/xdocs/docs/developer-guide.xml
+++ b/xdocs/docs/developer-guide.xml
@@ -60,6 +60,7 @@
 <ul>
 <li><a href="#thebasics">The Basics</a></li>
 <li><a href="#supportforiterativeobjectsforforeach">Support for Iterative Objects for #foreach()</a></li>
+<li><a href="#supportforstaticclasses">Support for "Static Classes"</a></li>
 <li><a href="#contextchaining">Context Chaining</a></li>
 <li><a href="#objectscreatedinthetemplate">Objects Created by the Template</a></li>
 <li><a href="#othercontextissues">Other Context Issues</a></li>
@@ -654,6 +655,22 @@
 careful when you place an Iterator into the context.
 </p>
 
+<a name="supportforstaticclasses"><strong>Support for "Static Classes"</strong></a>
+
+<p>Not all classes are instantiable.  Classes like <code>java.lang.Math</code>
+do not provide any public constructor, and yet may contain useful static methods.
+In order to access these static methods from a template, you can simply add the
+class itself to the context:
+</p>
+
+<source><![CDATA[
+context.put("Math", Math.class);
+]]></source>
+
+<p>This will allow you to call any public static method in <code>java.lang.Math</code>
+on the <code>$Math</code> reference in the template.
+</p>
+
 <a name="contextchaining"><strong>Context Chaining</strong></a>
 
 <p>