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.
AnythingObjectTemplateEngineBasicIdentifiableObjectAnything| Initializer |
TemplateEngine(TemplateEngine unknown) |
| Inherited Attributes |
Attributes inherited from: Objecthash, string |
| Methods | |
isCachingEnabled | shared default Boolean isCachingEnabled()Returns true if the template engine caches template files. If false, then template files are freshly loaded each time they are used. |
render | shared default void render(RoutingContext context, String templateFileName, Anything(Throwable|Buffer) handler)Render the template Parameters:
|
render | shared default void render(RoutingContext context, String templateDirectory, String templateFileName, Anything(Throwable|Buffer) handler)Render the template
NOTE if you call method directly (i.e. not using TemplateHandler) make sure
that templateFileName is sanitized via Parameters:
|
| Inherited Methods |
Methods inherited from: Objectequals |