<body>
<h1>Velocity Adapter for Scriptella.</h1>
This driver allows to integrate velocity templates into script files.
<p>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.</p>
<h2>General information</h2>
<table>
<tr>
<td><b>Driver class:</b></td><td><code>scriptella.driver.velocity.Driver</code></td>
</tr>
<tr>
<td><b>URL:</b></td><td><code>URL to send output to. URIs are resolved relative to a script file directory.</code></td>
</tr>
<tr>
<td><b>Runtime dependencies:</b></td><td><code><a href="http://www.ibiblio.org/pub/packages/maven2/velocity/velocity-dep/1.4/velocity-dep-1.4.jar">velocity-dep-1.4.jar</a></code></td>
</tr>
</table>
<h2>Driver Specific Properties</h2>
<table border="1">
<tr>
<th>Name</th>
<th>Description</th>
<th>Required</th>
</tr>
<tr>
<td>encoding</td>
<td>Character encoding for output streams.</td>
<td>No, the JVM default charset is used.</td>
</tr>
</table>
<h2>Example</h2>
<code><pre>
<connection driver="scriptella.spi.velocity.Driver" url="report.html">
encoding=UTF-8;
</connection>
</pre></code>
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.
</body>
|