Class MethodHelper
java.lang.Object
com.github.jknack.handlebars.helper.MethodHelper
Deprecated.
com.github.jknack.handlebars.helper package is deprecated and marked for removal in subsequent releases which will involve removal of the handlebars dependency in AEM.
Wrap a method as Handlebars helper.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMethodHelper(Method method, Object source) Deprecated.Creates a newMethodHelper. -
Method Summary
-
Constructor Details
-
MethodHelper
Deprecated.Creates a newMethodHelper.- Parameters:
method- The method to invoke. Required.source- The source or instance object. Might be null.
-
-
Method Details
-
apply
Deprecated.Description copied from interface:HelperApply the helper to the context.- Specified by:
applyin interfaceHelper<Object>- Parameters:
context- The context object.options- The options object.- Returns:
- A string result.
- Throws:
IOException- If a template cannot be loaded.
-