Template transformers are CDI Managed beans that have the capability of transforming templates: add stylesheet references, add script references, replace content or any other operation. The transformers are executed on the first time a template is loaded, during deployment.
Why add Template transformers?
Because a template is declared in one place, one single time, one single artifact, but there situation we need the template to load content dynamically based in the context the template is being used.
Template transformers are CDI Managed beans that have the capability of transforming templates: add stylesheet references, add script references, replace content or any other operation. The transformers are executed on the first time a template is loaded, during deployment.
Why add Template transformers?
Because a template is declared in one place, one single time, one single artifact, but there situation we need the template to load content dynamically based in the context the template is being used.
How to make a template transformable
Template transformer example