Interface IHtmlTemplateRenderPluginCallback
public interface IHtmlTemplateRenderPluginCallback
Callback that allows the
HTML template render process to be
customized. Consists of a set of callbacks that are invoked at certain stages of the HTML template render lifecycle.
More callback methods may be added later as required.
Can be used, for example, to append dynamic script data to templates. For static script and stylesheet resources,
use IPluginFormResources with includeInTemplate,
so resources can be linked and cached properly.
- Since:
- 8.3.7
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionInvoked at the end, after an HTML template was rendered.
-
Method Details
-
onAfterRenderTemplate
@CanIgnoreReturnValue default IPluginHtmlTemplateRenderCallbackOnAfterRenderRetVal onAfterRenderTemplate(IPluginHtmlTemplateRenderCallbackOnAfterRenderParams params) Invoked at the end, after an HTML template was rendered.- Parameters:
params- Parameters for the callback.- Returns:
- Return value of the callback. May be
null. - Throws:
RuntimeException- Any exceptions are caught, logged, and ignored otherwise.
-