@CompileStatic class TemplateHandler
A handler which renders responses using a template engine and where the template name is selected from the URI path.
| Constructor and description |
|---|
TemplateHandler
(Object delegate) |
| Type | Name and description |
|---|---|
static TemplateHandler |
create(TemplateEngine engine)Create a handler |
static TemplateHandler |
create(TemplateEngine engine, String templateDirectory, String contentType)Create a handler |
Object |
getDelegate() |
void |
handle(RoutingContext arg0) |
Create a handler
engine - the template engineCreate a handler
engine - the template enginetemplateDirectory - the template directory where templates will be looked forcontentType - the content type header to be used in the responseio.vertx:vertx-web:3.1.0