Interface TemplateProcessor

  • All Known Implementing Classes:
    BaseTemplateProcessor, FreemarkerTemplateProcessor

    public interface TemplateProcessor
    Processes a template with data passed into it. A template processor is used as a singleton so multiple threads may use one template processor at the same time.
    Author:
    mtaal
    • Method Detail

      • process

        String process​(Template template,
                       Map<String,​Object> data)
        Processes a template and returns the result as a string.
        Parameters:
        template - the template to process.
        data - the data to use in the template
        Returns:
        the template process result.
      • clearCache

        void clearCache()
        Is called by the kernel to signal that a template has changed and that TemplateProcessors should clear their cache and reload the templates.
      • getTemplateLanguage

        String getTemplateLanguage()
        Returns:
        the template language supported by this template processor