public interface TemplateEngine
Concrete implementations exist for several well-known template engines.
Modifier and Type | Method and Description |
---|---|
boolean |
isCachingEnabled()
Returns true if the template template caches template files.
|
default void |
render(JsonObject context,
String templateFileName,
Handler<AsyncResult<Buffer>> handler)
Render the template.
|
void |
render(Map<String,Object> context,
String templateFileName,
Handler<AsyncResult<Buffer>> handler)
Render the template.
|
default void render(JsonObject context, String templateFileName, Handler<AsyncResult<Buffer>> handler)
context
- the routing contexttemplateFileName
- the template file name to usehandler
- the handler that will be called with a result containing the buffer or a failure.void render(Map<String,Object> context, String templateFileName, Handler<AsyncResult<Buffer>> handler)
context
- the routing contexttemplateFileName
- the template file name to usehandler
- the handler that will be called with a result containing the buffer or a failure.boolean isCachingEnabled()
Copyright © 2023 Eclipse. All rights reserved.