Class FreemarkerTemplateContext
java.lang.Object
ch.tocco.nice2.optional.cms.impl.publish.output.freemarker.FreemarkerTemplateContext
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddPostProcessor
(String postProcessor) Add a post processor to execute after template processing.Get a set of the requested post processors.
-
Constructor Details
-
FreemarkerTemplateContext
public FreemarkerTemplateContext()
-
-
Method Details
-
addPostProcessor
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
Get a set of the requested post processors.- Returns:
- an unmodifiable set of the post processors.
-