Class: TemplateHandler

vertx-web-js/template_handler~ TemplateHandler

new TemplateHandler()

A handler which renders responses using a template engine and where the template name is selected from the URI path.
Source:

Methods

handle(event)

Something has happened, so handle it.
Parameters:
Name Type Description
event RoutingContext the event to handle
Source:

setIndexTemplate(indexTemplate) → {TemplateHandler}

Set the index template
Parameters:
Name Type Description
indexTemplate string the index template
Source:
Returns:
a reference to this, so the API can be used fluently
Type
TemplateHandler