Interface Template


public interface Template
The Template interface defines methods to render the template.
  • Method Summary

    Modifier and Type
    Method
    Description
    make(Map<String,Object> context)
    Make a template renderer using the given context.
    <T extends Model>
    Renderer
    make(T context)
    Make a template renderer using the given context.
  • Method Details

    • make

      Renderer make(Map<String,Object> context)
      Make a template renderer using the given context.
      Parameters:
      context - the template context
      Returns:
      a Renderer instance
    • make

      <T extends Model> Renderer make(T context)
      Make a template renderer using the given context.
      Type Parameters:
      T - type of the context bean
      Parameters:
      context - the template context
      Returns:
      a Renderer instance