The Operation Definition
In order to have this work and to keep the operation definitions somewhat consistent I have created a specical service I call the "template" service. If you create an operation definition that looks like this:
<operation name="Process Template" ID="Template" template="direct_output">
using the service name "template" in the service Element, you can invoke this new service.
All of the options will trail along in the request object and will be available from the $las_request object in the templage. You can access this object using its methods. For example, a link back to the page is available from the $las_resquest.toEncodedURLString() and a string representation with with no carriage returns is available from $las_request.getCompactString().
An Example Output Template
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- LAS SERVER OK -->
<th>Dataset Name</th><th>Dataset ID</th>
#foreach ($ds in $las_config.getDatasets())
<a href="$las_resquest.toEncodedURLString()">Link to this plot.</a>