Class EnsurePropertiesHelper
java.lang.Object
io.wcm.devops.conga.generator.plugins.handlebars.helper.EnsurePropertiesHelper
- All Implemented Interfaces:
HelperPlugin<Object>,Plugin
Handlebars helper that checks if all given property names have a value set.
If not, an exception is thrown containing the missing property names.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NAME
Plugin/Helper name- See Also:
-
-
Constructor Details
-
EnsurePropertiesHelper
public EnsurePropertiesHelper()
-
-
Method Details
-
getName
Description copied from interface:PluginGets plugin name. -
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.
-