Class EachIfHelper
java.lang.Object
io.wcm.devops.conga.generator.plugins.handlebars.helper.EachIfHelper
- All Implemented Interfaces:
HelperPlugin<Object>,Plugin
Handlebars helper that extends the each helper by iterating only on list items that have a specified property set.
"Deep map access" with dot notation is supported as property names as well.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NAME
Plugin/Helper name- See Also:
-
-
Constructor Details
-
EachIfHelper
public EachIfHelper()Constructor
-
-
Method Details
-
getName
- Returns:
- Plugin name to be referenced in definition file
-
apply
public final 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.
-