# 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:
  - vertx-web-js/template_handler.js, line 33

### Methods

#### handle(arg0)

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | RoutingContext |

Source:
  - vertx-web-js/template_handler.js, line 43

#### setIndexTemplate(indexTemplate) → {TemplateHandler}

Set the index template

##### Parameters:

Name | Type | Description
--- | --- | ---
`indexTemplate` | string | the index template

Source:
  - vertx-web-js/template_handler.js, line 57

##### Returns:

a reference to this, so the API can be used fluently

Type
  TemplateHandler