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.

Initializer
TemplateEngine(TemplateEngine unknown)
Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
rendershared default void render(RoutingContext context, String templateFileName, Anything(Throwable|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.

Inherited Methods
Methods inherited from: Object
equals