|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.velocity.app.event.implement.IncludeRelativePath
public class IncludeRelativePath
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 "\".
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.velocity.app.event.IncludeEventHandler |
|---|
IncludeEventHandler.IncludeEventExecutor |
| Constructor Summary | |
|---|---|
IncludeRelativePath()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IncludeRelativePath()
| Method Detail |
|---|
public java.lang.String includeEvent(java.lang.String includeResourcePath,
java.lang.String currentResourcePath,
java.lang.String directiveName)
includeEvent in interface 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").
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||