Package: io.vertx.groovy.ext.web.templ

## [Groovy] Class TemplateEngine

- io.vertx.groovy.ext.web.templ.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.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `TemplateEngine (Object delegate)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `Object` | `getDelegate()`
    `void` | `render(RoutingContext context, String templateFileName, Handler<AsyncResult<Buffer>> handler)` Render

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Constructor Detail

    - #### TemplateEngine(Object delegate)

  - ### Method Detail

    - #### Object getDelegate()

    - #### void render(RoutingContext context, String templateFileName, Handler<AsyncResult<Buffer>> handler)

      Render

      Parameters:
        `context` - the routing context
        `templateFileName` - the template file name to use
        `handler` - the handler that will be called with a result containing the buffer or a failure.