Interface Helper<T>

Type Parameters:
T - The context object.
All Known Implementing Classes:
BlockHelper, ConditionalHelpers, EachHelper, EmbeddedHelper, I18nHelper, IfHelper, LogHelper, LookupHelper, MethodHelper, PartialHelper, PrecompileHelper, StringHelpers, UnlessHelper, WithHelper

@Deprecated(since="2024-07-10") public interface Helper<T>
Deprecated.
com.github.jknack.handlebars package is deprecated and marked for removal in subsequent releases which will involve removal of the handlebars dependency in AEM.
Handlebars helpers can be accessed from any context in a template. You can register a helper with the Handlebars.registerHelper(String, Helper) method.
Since:
0.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T context, Options options)
    Deprecated.
    Apply the helper to the context.
  • Method Details

    • apply

      Object apply(T context, Options options) throws IOException
      Deprecated.
      Apply the helper to the context.
      Parameters:
      context - The context object.
      options - The options object.
      Returns:
      A string result.
      Throws:
      IOException - If a template cannot be loaded.