Module io.avaje.jex
Package io.avaje.jex

Interface TemplateRender


public interface TemplateRender
Template rendering typically of html.
  • 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 and these are the extensions it will register for 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