java.lang.Object
io.wcm.devops.conga.generator.plugins.handlebars.helper.ContainsHelper
All Implemented Interfaces:
HelperPlugin<Object>, Plugin

public final class ContainsHelper extends Object implements HelperPlugin<Object>
Handlebars helper that checks the existence of a value in an array or list.
  • Field Details

  • Constructor Details

    • ContainsHelper

      public ContainsHelper()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Plugin
      Returns:
      Plugin name to be referenced in definition file
    • apply

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