Velocity Tools
Generic Tools
Tool Documentation
Other Subprojects
|
Overview
|
|
GenericTools contains a collection of reusable and well
documented tools and utility classes of general interest
to Velocity users. These classes and tools have no dependency
on the VelocityView or VelocityStruts sub-projects. The tools may
be used as you would any other POJO ("plain old java object").
Tools:
- DateTool
- A tool for manipulating and formatting dates.
- MathTool
- A tool for performing floating point math.
- NumberTool
- A tool for formatting numbers.
- IteratorTool
- A convenience tool to use with #foreach loops. It wraps a list
to let the designer specify a condition to terminate the loop,
and reuse the same list in different loops.
- RenderTool
- A tool to evaluate and render arbitrary strings of VTL (Velocity
Template Language).
Utilities:
- CommonsLogLogSystem
- An implementation of Velocity's LogSystem interface that redirects
log output to a Commons-Logging Log instance.
- LogSystemCommonsLog
- An implementation of Commons-Logging's Log interface that redirects
log output to Velocity's LogSystem.
|
Contributions
|
|
We welcome your contributions to this library. Patches can be sent to the
mailing list or attached to a
bugzilla
ticket. The Wiki
can also be a good place to discuss and develop ideas.
Checklist for Contributions
- Velocity coding conventions
- JavaDoc included (the more detailed the better)
- Examples included (in JavaDoc or as stand-alone template example)
|
|