|
Returns the supplied URL rendered as a String.
- Parameters
-
- url
-
The URL to import.
- Returns
-
The supplied URL rendered as a String.
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).
$import.read("http://jakarta.apache.org/velocity/tools")
$import.read("/wookie.jsp")
|
|
与えられたURLが示すリソースを文字列に変換して返却します。
- Parameters
-
- url
-
インポート対象のURL。
- Returns
-
与えられたURLが示すリソースを文字列に変換した結果。
このメソッドは任意のURLまたはURIが示すリソースを文字列に変換します。
このツールはローカルの.vmリソースをインポートするためにも使用できます。
この際、(#parse指示子とは反対に)カレントのvelocityコンテキストは共有されません。
$import.read("http://jakarta.apache.org/velocity/tools")
$import.read("/wookie.jsp")
|
|
|