Class FreemarkerTemplateContext

java.lang.Object
ch.tocco.nice2.optional.cms.impl.publish.output.freemarker.FreemarkerTemplateContext

public class FreemarkerTemplateContext extends Object
This bean is used to control template processing in the templates. i.e. post processors can be requested by adding their identification by calling addPostProcessor(String).
  • Constructor Details

    • FreemarkerTemplateContext

      public FreemarkerTemplateContext()
  • Method Details

    • addPostProcessor

      public String addPostProcessor(String postProcessor)
      Add a post processor to execute after template processing.
      Parameters:
      postProcessor - The id of the post processor.
      Returns:
      an empty string. If we returned nothing or null, we would have to handle it in the template.
    • getPostProcessors

      public Set<String> getPostProcessors()
      Get a set of the requested post processors.
      Returns:
      an unmodifiable set of the post processors.