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
(java.lang.Object delegate) |
| Type | Name and description |
|---|---|
java.lang.Object |
getDelegate() |
void |
render(RoutingContext context, java.lang.String templateFileName, io.vertx.core.Handler<io.vertx.core.AsyncResult<Buffer>> handler)Render |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
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.