A template engine uses a specific template and the data in a routing context to render a resource into a buffer.
Concrete implementations exist for several well-known template engines.
| Constructor and description |
|---|
TemplateEngine
(Object delegate) |
| Type | Name and description |
|---|---|
Object |
getDelegate() |
void |
render(RoutingContext context, String templateFileName, Handler<AsyncResult<Buffer>> handler)Render |
Render
context - the routing contexttemplateFileName - the template file name to usehandler - the handler that will be called with a result containing the buffer or a failure.io.vertx:vertx-web:3.1.0