Interface TemplateRender

All Superinterfaces:
JexExtension

public non-sealed interface TemplateRender extends JexExtension
Template rendering typically of html.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the extensions this template renders for by default.
    void
    render(Context context, String name, Map<String,Object> model)
    Render the template and model typically as html to the given context.
  • Method Details

    • defaultExtensions

      String[] defaultExtensions()
      Return the extensions this template renders for by default.

      When the template render is not explicitly registered, it can be automatically registered via ServiceLoader with the provided extensions by default.

    • render

      void render(Context context, String name, Map<String,Object> model)
      Render the template and model typically as html to the given context.
      Parameters:
      context - The context to render the template to
      name - The template name
      model - The model of key value pairs used when rendering the template