org.apache.velocity.app.event.implement
public class IncludeRelativePath extends 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
Constructor and Description |
---|
IncludeRelativePath() |
Modifier and Type | Method and Description |
---|---|
String |
includeEvent(String includeResourcePath,
String currentResourcePath,
String directiveName)
Return path relative to the current template's path.
|
public String includeEvent(String includeResourcePath, String currentResourcePath, String directiveName)
includeEvent
in interface IncludeEventHandler
includeResourcePath
- 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").Copyright © 2000-2013 The Apache Software Foundation. All Rights Reserved.