Class ContainsHelper
java.lang.Object
io.wcm.devops.conga.generator.plugins.handlebars.helper.ContainsHelper
- All Implemented Interfaces:
HelperPlugin<Object>,Plugin
Handlebars helper that checks the existence of a value in an array or list.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NAME
Plugin/Helper name- See Also:
-
-
Constructor Details
-
ContainsHelper
public ContainsHelper()
-
-
Method Details
-
getName
-
apply
public Object apply(Object context, com.github.jknack.handlebars.Options options, HelperContext pluginContext) throws IOException Description copied from interface:HelperPluginApply the helper to the context.- Specified by:
applyin interfaceHelperPlugin<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.
-