Class LogHelper

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

@Deprecated(since="2024-07-10") public class LogHelper extends Object implements Helper<Object>
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.
Log a message. Usage:
  {{log "Look at me!" }}

  {{log "This is logged" foo "And so is this"}}

  {{log "Log!" level="error"}}

  {{#log}}
   Hi {{name}}!
  {{/log}}
  
Since:
4.0.1
  • Field Details

    • INSTANCE

      public static final Helper<Object> INSTANCE
      Deprecated.
      A singleton instance of this helper.
    • NAME

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

    • LogHelper

      public LogHelper()
      Deprecated.
  • Method Details

    • apply

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