# Class: TemplateEngine

## vertx-web-js/template_engine~ TemplateEngine

#### new TemplateEngine()

  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.

  Source:
    - template_engine.js, line 33

### Methods

#### render(context, templateFileName, handler)

  Render

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `context` | RoutingContext | the routing context
  `templateFileName` | string | the template file name to use
  `handler` | function | the handler that will be called with a result containing the buffer or a failure.

  Source:
    - template_engine.js, line 46