public interface TemplateEngine
Concrete implementations exist for several well-known template engines.
Modifier and Type | Method and Description |
---|---|
default Future<Buffer> |
render(JsonObject context,
String templateFileName) |
default void |
render(JsonObject context,
String templateFileName,
Handler<AsyncResult<Buffer>> handler)
Render the template.
|
default Future<Buffer> |
render(Map<String,Object> context,
String templateFileName) |
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.default Future<Buffer> render(JsonObject context, String templateFileName)
context
- the routing contexttemplateFileName
- the template file name to userender(JsonObject, String, Handler)
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.Copyright © 2020 Eclipse. All rights reserved.