Author: cbrisson
Date: Mon Oct 1 10:25:01 2018
New Revision: 1842462
URL: http://svn.apache.org/viewvc?rev=1842462&view=rev
Log:
[site/tools] Install section with maven dependency block on main subprojects
page
Modified:
velocity/site/cms/trunk/content/tools/devel/generic.mdtext
velocity/site/cms/trunk/content/tools/devel/view.mdtext
Modified: velocity/site/cms/trunk/content/tools/devel/generic.mdtext
URL:
http://svn.apache.org/viewvc/velocity/site/cms/trunk/content/tools/devel/generic.mdtext?rev=1842462&r1=1842461&r2=1842462&view=diff
==============================================================================
--- velocity/site/cms/trunk/content/tools/devel/generic.mdtext (original)
+++ velocity/site/cms/trunk/content/tools/devel/generic.mdtext Mon Oct 1
10:25:01 2018
@@ -4,6 +4,19 @@ Title: Apache Velocity Tools - Generic T
GenericTools is the set of classes that provide basic infrastructure for using
tools in standard Java SE Velocity projects, as well as a set of tools for use
in generic Velocity templates. These tools have no Java EE dependencies and are
often safe to use as "singletons". Some of them are not thread-safe to allow
both a no-arg constructor and configurability, but the state-changing methods
are declared protected with the exception of configure(Map) which is--by
default--rendered useless after being used just once. If you require strict
thread-safety, be cautious in using any configurable tools and consider
[restricting the abilities of template
authors](http://wiki.apache.org/velocity/BuildingSecureWebApplications) to
prevent circumvention of the lockdown placed on configuration methods.
+## Installation
+
+For inclusion in a Maven project, use the following dependency block:
+
+ :::xml
+ <dependency>
+ <groupId>org.apache.velocity.tools</groupId>
+ <artifactId>velocity-tools-generic</artifactId>
+ <version>3.0</version>
+ </dependency>
+
+Otherwise, see the [download page](/download.html#tools) for how to get the
Velocity Generic Tools jar.
+
## Usage
+ Initialization with only standard generic tools, using the default
configuration file:
Modified: velocity/site/cms/trunk/content/tools/devel/view.mdtext
URL:
http://svn.apache.org/viewvc/velocity/site/cms/trunk/content/tools/devel/view.mdtext?rev=1842462&r1=1842461&r2=1842462&view=diff
==============================================================================
--- velocity/site/cms/trunk/content/tools/devel/view.mdtext (original)
+++ velocity/site/cms/trunk/content/tools/devel/view.mdtext Mon Oct 1 10:25:01
2018
@@ -12,6 +12,19 @@ Key features:
+ A number of useful, extendable tools for developing web applications are
already provided for your convenience.
+ Logging is made through the SLF4J logging facade. It can be directed to the
log infrastructure of the Web application (using the logging facility provided
by the Servlet API) by addind the [webapp slf4j
logger](https://github.com/arkanovicz/webapp-slf4j-logger) into the classpath.
+## Installation
+
+For inclusion in a Maven project, use the following dependency block:
+
+ :::xml
+ <dependency>
+ <groupId>org.apache.velocity.tools</groupId>
+ <artifactId>velocity-tools-view</artifactId>
+ <version>3.0</version>
+ </dependency>
+
+Otherwise, see the [download page](/download.html#tools) for how to get the
Velocity View Tools jar.
+
## Default Configuration
The default configuration provided for VelocityView is
[here](http://svn.apache.org/viewvc/velocity/tools/trunk/velocity-tools-generic/src/main/resources/org/apache/velocity/tools/generic/tools.xml?view=markup")
and
[here](http://svn.apache.org/viewvc/velocity/tools/trunk/velocity-tools-view/src/main/resources/org/apache/velocity/tools/view/tools.xml?view=markup).