scriptella.driver.velocity |
Velocity Adapter for Scriptella.
This driver allows to integrate velocity templates into script files.
The content inside scipt elements managed by this driver is evaluated by Velocity engine and the output
is sent to the URL specified as connection parameter.
General information
Driver class: | scriptella.driver.velocity.Driver |
URL: | URL to send output to. URIs are resolved relative to a script file directory. |
Runtime dependencies: | velocity-dep-1.4.jar |
Driver Specific Properties
Name |
Description |
Required |
encoding |
Character encoding for output streams. |
No, the JVM default charset is used. |
Example
<connection driver="scriptella.spi.velocity.Driver" url="report.html">
encoding=UTF-8;
</connection>
Registers a velocity connection which renders its output to a file report.html in the same directory
where the script file resides. UTF-8 is used to encode output.
|
Java Source File Name | Type | Comment |
Driver.java | Class | Scriptella Driver for Velocity template engine. |
VelocityConnection.java | Class | Represents a session to velocity engine. |
VelocityConnectionTest.java | Class | Tests velocity connection class. |
VelocityPerfTest.java | Class | Performance test for velocity connection provider. |
VelocityProviderException.java | Class | Thrown by Velocity Provider to indicate velocity failure. |
VelocityScriptTest.java | Class | Tests a script with velocity elements. |