Interface TemplateRenderer

All Known Implementing Classes:
MustacheTemplateRenderer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TemplateRenderer
Template rendering abstraction.
Author:
Stephane Nicoll
  • Method Summary

    Modifier and Type
    Method
    Description
    render(String templateName, Map<String,?> model)
    Render the template with the specified name and the specified model.
  • Method Details

    • render

      String render(String templateName, Map<String,?> model) throws IOException
      Render the template with the specified name and the specified model.
      Parameters:
      templateName - the name of the template
      model - the model to use
      Returns:
      the rendering result
      Throws:
      IOException - if rendering the template failed