You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by wg...@apache.org on 2005/01/05 15:15:21 UTC
svn commit: r124208 - /jakarta/velocity/trunk/docs/user-guide.html
Author: wglass
Date: Wed Jan 5 06:15:18 2005
New Revision: 124208
URL: http://svn.apache.org/viewcvs?view=rev&rev=124208
Log:
removed invalid case substitution example.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31615
Modified:
jakarta/velocity/trunk/docs/user-guide.html
Modified: jakarta/velocity/trunk/docs/user-guide.html
Url: http://svn.apache.org/viewcvs/jakarta/velocity/trunk/docs/user-guide.html?view=diff&rev=124208&p1=jakarta/velocity/trunk/docs/user-guide.html&r1=124207&p2=jakarta/velocity/trunk/docs/user-guide.html&r2=124208
==============================================================================
--- jakarta/velocity/trunk/docs/user-guide.html (original)
+++ jakarta/velocity/trunk/docs/user-guide.html Wed Jan 5 06:15:18 2005
@@ -1,8 +1,24 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--
+Copyright 1999-2004 The Apache Software Foundation
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
+
<!-- Content Stylesheet for Site -->
-
+
<!-- start the processing -->
<!-- ====================================================================== -->
<!-- GENERATED FILE, DO NOT EDIT, EDIT THE XML FILE IN xdocs INSTEAD! -->
@@ -16,17 +32,17 @@
<meta name="email" value="jvanzyl@zenplex.com">
<meta name="author" value="John Castura">
<meta name="email" value="jcastura@kw.igs.net">
-
-
-
-
-
-
-
+
+
+
+
+
+
+
<title>Velocity - Velocity User Guide</title>
</head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body bgcolor="#ffffff" text="#000000" link="#525D76">
<table border="0" width="100%" cellspacing="0">
<!-- TOP IMAGE -->
<tr>
@@ -42,11 +58,11 @@
<tr><td colspan="2">
<hr noshade="" size="1"/>
</td></tr>
-
+
<tr>
<!-- LEFT SIDE NAVIGATION -->
<td width="20%" valign="top" nowrap="true">
-
+
<!-- ============================================================ -->
<p><strong>About</strong></p>
@@ -148,6 +164,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<ol>
<li><a href="#About this Guide">About this Guide</a></li>
@@ -219,6 +236,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<p>
The Velocity User Guide is intended to help page designers and
@@ -243,6 +261,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<p>
Velocity is a Java-based template engine. It permits web page
@@ -278,6 +297,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
@@ -390,6 +410,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<p>
The Velocity Template Language (VTL) is meant to provide the
@@ -476,6 +497,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<p>
Once a value has been assigned to a variable, you can reference the
@@ -529,6 +551,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<p>
Comments allows descriptive text to be included that is not placed
@@ -671,6 +694,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<p>
There are three types of references in the VTL: variables,
@@ -1108,6 +1132,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<p>
VTL uses special characters, such as <em>$</em> and <em>#</em>, to
@@ -1323,6 +1348,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<p>
Now that you are familiar with references, you can begin to apply
@@ -1346,9 +1372,9 @@
## is the same as
$foo.Bar
-$data.getUser("jon")
+$data.setUser("jon")
## is the same as
-$data.User("jon")
+#set( $data.User = "jon" )
$data.getRequest().getServerName()
## is the same as
@@ -1402,6 +1428,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<p>
References allow template designers to generate dynamic content for
@@ -1795,6 +1822,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<strong>If / ElseIf / Else</strong>
<p>
@@ -2061,6 +2089,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<strong>Foreach Loop</strong>
<p>
@@ -2211,6 +2240,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<p>
The <em>#include</em> script element allows the template designer to
@@ -2306,6 +2336,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<p>
The <em>#parse</em> script element allows the template designer to
@@ -2425,6 +2456,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<p>
The <em>#stop</em> script element allows the template designer to
@@ -2464,6 +2496,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<p>
The <em>#macro</em> script element allows template designers to
@@ -2893,6 +2926,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<p>
VTL directives can be escaped with the backslash character ("\") in
@@ -3139,6 +3173,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<p>
Although VTL in this user guide is often displayed with newlines and
@@ -3266,6 +3301,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
@@ -3994,6 +4030,7 @@
</font>
</td></tr>
<tr><td>
+ <p>
<blockquote>
<p>
If you encounter any mistakes in this manual or have
@@ -4016,7 +4053,7 @@
</td></tr>
<tr><td colspan="2">
<div align="center"><font color="#525D76" size="-1"><em>
- Copyright © 1999-2004, Apache Software Foundation
+ Copyright © 1999-2005, The Apache Software Foundation
</em></font></div>
</td></tr>
</table>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org