Class PrecompileHelper

java.lang.Object
com.github.jknack.handlebars.helper.PrecompileHelper
All Implemented Interfaces:
Helper<String>

@Deprecated(since="2024-07-10") public final class PrecompileHelper extends Object implements Helper<String>
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.
Precompile a template to JavaScript using handlebars.js.
Since:
0.6.0
  • Field Details

    • NAME

      public static final String NAME
      Deprecated.
      The default helper's name.
      See Also:
    • INSTANCE

      public static final Helper<String> INSTANCE
      Deprecated.
      The default and shared instance.
  • Method Details

    • apply

      public Object apply(String path, Options options) throws IOException
      Deprecated.
      Description copied from interface: Helper
      Apply the helper to the context.
      Specified by:
      apply in interface Helper<String>
      Parameters:
      path - The context object.
      options - The options object.
      Returns:
      A string result.
      Throws:
      IOException - If a template cannot be loaded.