Class HttpdCloudManagerConditionalHelper
java.lang.Object
io.wcm.devops.conga.plugins.aem.handlebars.helper.HttpdCloudManagerConditionalHelper
- All Implemented Interfaces:
io.wcm.devops.conga.generator.spi.handlebars.HelperPlugin<Object>
,io.wcm.devops.conga.generator.spi.Plugin
Checks if there is a conditional statement 'httpd.cloudManagerConditional' in the current context.
If yes iterates over all environments and renders the body for each with a merged model,
each enclosed in an IfDefine statement.
If no the body is rendered once with the default model.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object
apply
(Object context, com.github.jknack.handlebars.Options options, io.wcm.devops.conga.generator.spi.handlebars.context.HelperContext pluginContext) getName()
protected void
renderBodyContent
(com.github.jknack.handlebars.Options.Buffer buffer, CharSequence bodyContent, String targetEnvironment)
-
Field Details
-
NAME
Plugin/Helper name- See Also:
-
-
Constructor Details
-
HttpdCloudManagerConditionalHelper
public HttpdCloudManagerConditionalHelper()
-
-
Method Details
-
getName
-
renderBodyContent
protected void renderBodyContent(com.github.jknack.handlebars.Options.Buffer buffer, CharSequence bodyContent, String targetEnvironment) throws IOException - Throws:
IOException
-
apply
public final Object apply(Object context, com.github.jknack.handlebars.Options options, io.wcm.devops.conga.generator.spi.handlebars.context.HelperContext pluginContext) throws IOException - Specified by:
apply
in interfaceio.wcm.devops.conga.generator.spi.handlebars.HelperPlugin<Object>
- Throws:
IOException
-