Interface TemplateRenderer

All Known Implementing Classes:
MustacheTemplateRenderer

public interface TemplateRenderer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    render(Locale locale, String templateLocation, Object params, Writer out)
    Renders the template at the given location (looked up via classpath) using the params provided.
  • Method Details

    • render

      void render(Locale locale, String templateLocation, Object params, Writer out)
      Renders the template at the given location (looked up via classpath) using the params provided. params can either be a POJO or a Map<String,Object> of parameters.

      Will throw an IllegalArgumentException if the template specified can't be found.

      Parameters:
      locale - the locale of the user making the request
      templateLocation - the classpath template location.
      params - A POJO or Map<String, Object> parameters
      out - The writer to write to.