Interface ITemplateEngine

All Known Implementing Classes:
VelocityTemplateEngine

public interface ITemplateEngine
Service rendering templates for workflow messages.
Author:
ActiveViam
  • Method Details Link icon

    • render Link icon

      String render(String template, Map<String,Object> model)
      Renders a template from a template as a string.
      Parameters:
      template - the template
      model - the model providing the variables of the template
      Returns:
      the rendered content
    • render Link icon

      String render(org.springframework.core.io.Resource template, Map<String,Object> model)
      Renders a template from a template as a resource.
      Parameters:
      template - the template resource
      model - the model providing the variables of the template
      Returns:
      the rendered content
    • renderFrom Link icon

      String renderFrom(String template, Map<String,Object> model)
      Renders a template from a template as a resource.
      Parameters:
      template - the template resource as a path Path can be explicit or written with respect to the classpath, by prefixing the path by 'classpath:' or 'cp:'.
      model - the model providing the variables of the template
      Returns:
      the rendered content