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
public final class HttpdCloudManagerConditionalHelper extends Object
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.
-
-
Constructor Summary
Constructors Constructor Description HttpdCloudManagerConditionalHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
apply(Object context, com.github.jknack.handlebars.Options options, io.wcm.devops.conga.generator.spi.handlebars.context.HelperContext pluginContext)
String
getName()
protected void
renderBodyContent(com.github.jknack.handlebars.Options.Buffer buffer, CharSequence bodyContent, String targetEnvironment)
-
-
-
Field Detail
-
NAME
public static final String NAME
Plugin/Helper name- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String 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
-
-