You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by ma...@apache.org on 2004/01/31 15:16:37 UTC
cvs commit: jakarta-velocity-tools/xdocs/view ImportTool.xml
marino 2004/01/31 06:16:37
Added: xdocs/view ImportTool.xml
Log:
New documentation for the CookieTool, ImportTool and ViewRenderTool
Revision Changes Path
1.1 jakarta-velocity-tools/xdocs/view/ImportTool.xml
Index: ImportTool.xml
===================================================================
<?xml version="1.0"?>
<document>
<properties>
<title>ImportTool</title>
<author email="marino@apache.org">Marino A. Jonsson</author>
<projectfile>xdocs/view/menu.xml</projectfile>
</properties>
<body>
<section name="ImportTool Reference Documentation">
<p>General-purpose text-importing view tool for templates.</p>
<toolinfo>
<version>@@@version@@@, @@@date@@@</version>
<clazz>org.apache.velocity.tools.view.tools.ImportTool</clazz>
<name>$import</name>
<author email="marinoj@centrum.is">Marino A. Jonsson</author>
<config-example><tool>
<key>import</key>
<scope>session</scope>
<class>org.apache.velocity.tools.view.tools.ImportTool</class>
</tool></config-example>
</toolinfo>
<methods/>
</section>
<section name="read()">
<method name="read()">
<abstract>
Returns the supplied URL rendered as a String.
</abstract>
<signature>
String read(String url)
</signature>
<parameters>
<parameter name="url">
The URL to import.
</parameter>
</parameters>
<returns>
The supplied URL rendered as a String.
</returns>
<description>
<p>This method takes an arbitrary URL or URI and renders it as a String.
This tool can also be used to import local .vm resources without sharing
the current velocity-context (as opposed to the #parse directive).</p>
<sourcecode>$import.read("http://jakarta.apache.org/velocity/tools")
$import.read("/wookie.jsp")</sourcecode>
</description>
</method>
</section>
</body>
</document>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org