Package io.avaje.jex
Interface TemplateRender
-
public interface TemplateRenderTemplate rendering typically of html.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]defaultExtensions()Return the extensions this template renders for by default.voidrender(Context context, String name, Map<String,Object> model)Render the template and model typically as html to the given context.
-
-
-
Method Detail
-
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 toname- The template namemodel- The model of key value pairs used when rendering the template
-
-