public class IncludeRelativePath extends java.lang.Object implements IncludeEventHandler
Event handler that looks for included files relative to the path of the current template. The handler assumes that paths are separated by a forward slash "/" or backwards slash "\".
IncludeEventHandler.IncludeEventExecutor| 构造器和说明 |
|---|
IncludeRelativePath() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
includeEvent(java.lang.String includeResourcePath,
java.lang.String currentResourcePath,
java.lang.String directiveName)
Return path relative to the current template's path.
|
public java.lang.String includeEvent(java.lang.String includeResourcePath,
java.lang.String currentResourcePath,
java.lang.String directiveName)
includeEvent 在接口中 IncludeEventHandlerincludeResourcePath - the path as given in the include directive.currentResourcePath - the path of the currently rendering template that includes the
include directive.directiveName - name of the directive used to include the resource. (With the
standard directives this is either "parse" or "include").