Template engine Velocity
I. Velocity profile:
Velocity is a Java-based template engine. It allows anyone to simply refer to the object defined by Java code using the template language (templates language), or a vtl.
When velocity is applied to web development, interface designers can synchronize with Java program developers to develop a Web site that adheres to the MVC architecture, which means that page designers can focus only on the display of the page, while the Java program developer focuses on the business logic encoding. Velocity separates the Java code from the Web page, which facilitates long-term maintenance of the Web site, and provides an optional alternative to JSP and PHP.
Velocity's ability is much more than web site development, for example, it can generate SQL and PostScript, XML from Templates (template), which can also be used as a standalone tool to generate source code and reports, or as an integration component of other systems. Velocity can also provide template services for the turbine Web development architecture. Velocity+turbine provides a template service in a way that allows a Web application to be developed with a real MVC model.
Official website: http://velocity.apache.org/
Online api:http://www.ostools.net/apidocs/apidoc?api=velocity-1.7
second, the velocity plug-in for Eclipse:
1. Manual configuration:
Java code
- Move the velocity plug-in jar package (com.hudson.velocityweb_1. 6.5.jar) put the Dropins directory under Eclipse and restart Eclipse
2. Local IDE Installation:
Java code
- installation configuration for the velocity plug-in in MyEclipse:
- Open Eclipse--help--software Updates--find and install--Select the second Readbutton (Search for new features or install)-- Next--new local Site Select the download good velocity plugin
3. Manual configuration:
Java code
- 1. Download the plugin from the official website: Velocity.rar
- 2. Extract the features and plugins folders, put them in a directory, such as: D:\Program files\myeclipse_velocity_plugins
- 3. Locate the installation path for myeclipse, such as mine: D:\Program files\genuitec\myeclipse-8.6\dropins
- Create a Velocity.link file under this folder (with a text editing tool such as Notepad or EditPlus), and the Velocity.link content is: Path=d:\\program files\\myeclipse_velocity_ Plugins (this path is the path that is placed by the downloaded plugin)
- 4. Restart the myeclipse.
Resources:
1. veloedit:http://veloedit.sourceforge.net
2. Veloeclipse (Google Code): Http://code.google.com/p/veloeclipse
3. Veloeclipse (sourceforge): Http://propsorter.sourceforge.net/veloeclipse
4. velocitywebedit:http://velocitywebedit.sourceforge.net/
5. Velocity Official Website: http://velocity.apache.org
6. Velocity Officer's online editors:http://wiki.apache.org/velocity/velocityeditors
- Com.hudson.velocityweb_1.6.5.jar (4.4 MB)
- Download number of times: 75
- Velocity.rar (2.1 MB)
- Download number of times: 60
Template Engine Velocity