public interface IncludeEventHandler extends EventHandler
#include()
, #parse()
)
Allows the developer to modify the path of the resource returned.Modifier and Type | Method and Description |
---|---|
String |
includeEvent(Context context,
String includeResourcePath,
String currentResourcePath,
String directiveName)
Called when an include-type directive is encountered (
#include or #parse ). |
String includeEvent(Context context, String includeResourcePath, String currentResourcePath, String directiveName)
#include
or #parse
). May modify the path
of the resource to be included or may block the include entirely. All the
registered IncludeEventHandlers are called unless null is returned. If
none are registered the template at the includeResourcePath is retrieved.context
- current contextincludeResourcePath
- 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–2021 The Apache Software Foundation. All rights reserved.