Interface TemplateSet.Renderable<T>

Type Parameters:
T - The type of the value to render
All Known Subinterfaces:
TemplateSet.IndexableRenderable<T>
Enclosing interface:
TemplateSet

public static interface TemplateSet.Renderable<T>

A renderable is used to render a value with a particular type of object typically by invoking the corresponding template in a TemplateSet implementation.

This interface enables the compiler to select the template method based on the actual type of object to render. It especially allows to transform an object to render using Pipe before it is submitted to a template method.

Since:
1.2
Author:
Jeremy Kuhn
  • Method Details

    • render

      Renders a value using the specified renderer.

      Parameters:
      renderer - the renderer to invoke
      Returns:
      a future which completes once the renderer is done rendering data to the output