Package scriptella.driver.velocity
package 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.jar, commons-collections.jar, commons-lang.jar.
These optional libraries are not bundled in the binary distribution.
Supply all three with the connection classpath attribute.
The examples distribution includes them for the packaged primes sample. |
Driver Specific Properties
| Name | Description | Required |
|---|---|---|
| encoding | Character encoding for output streams. | No, the JVM default charset is used. |
Example
<connection driver="velocity" url="report.html"
classpath="lib/velocity.jar;lib/commons-collections.jar;lib/commons-lang.jar">
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.-
ClassDescriptionScriptella Driver for Velocity template engine.Represents a session to velocity engine.Thrown by Velocity Provider to indicate velocity failure.