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.
  • Field Details

  • Constructor Details

    • HttpdCloudManagerConditionalHelper

      public HttpdCloudManagerConditionalHelper()
  • Method Details

    • 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 interface io.wcm.devops.conga.generator.spi.handlebars.HelperPlugin<Object>
      Throws:
      IOException