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 (java.lang.Object delegate)`

  - ### Methods Summary

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

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Constructor Detail

    - #### TemplateEngine(java.lang.Object delegate)

  - ### Method Detail

    - #### java.lang.Object getDelegate()

    - #### void render(RoutingContext context, java.lang.String templateFileName, io.vertx.core.Handler<io.vertx.core.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.