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(io.vertx.core.json.JsonObject context,
String templateFileName,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>> handler)
Render the template.
|
void |
render(Map<String,Object> context,
String templateFileName,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>> handler)
Render the template.
|
default void render(io.vertx.core.json.JsonObject context, String templateFileName, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.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, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.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 © 2021 Eclipse. All rights reserved.