public class TemplateEngine extends Object
Concrete implementations exist for several well-known template engines.
NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<TemplateEngine> |
__TYPE_ARG |
Constructor and Description |
---|
TemplateEngine(Object delegate) |
TemplateEngine(io.vertx.ext.web.common.template.TemplateEngine delegate) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clears any internal caches used by this engine.
|
boolean |
equals(Object o) |
io.vertx.ext.web.common.template.TemplateEngine |
getDelegate() |
int |
hashCode() |
static TemplateEngine |
newInstance(io.vertx.ext.web.common.template.TemplateEngine arg) |
void |
render(io.vertx.core.json.JsonObject context,
String templateFileName)
Render the template.
|
void |
render(io.vertx.core.json.JsonObject context,
String templateFileName,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Buffer>> handler)
Render the template.
|
void |
render(Map<String,Object> context,
String templateFileName)
Render the template.
|
void |
render(Map<String,Object> context,
String templateFileName,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Buffer>> handler)
Render the template.
|
rx.Single<Buffer> |
rxRender(io.vertx.core.json.JsonObject context,
String templateFileName)
Render the template.
|
rx.Single<Buffer> |
rxRender(Map<String,Object> context,
String templateFileName)
Render the template.
|
String |
toString() |
<T> T |
unwrap()
Returns the underlying engine, so further configurations or customizations may be applied.
|
public static final TypeArg<TemplateEngine> __TYPE_ARG
public TemplateEngine(io.vertx.ext.web.common.template.TemplateEngine delegate)
public TemplateEngine(Object delegate)
public io.vertx.ext.web.common.template.TemplateEngine getDelegate()
public void render(io.vertx.core.json.JsonObject context, String templateFileName, io.vertx.core.Handler<io.vertx.core.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.public void render(io.vertx.core.json.JsonObject context, String templateFileName)
context
- the routing contexttemplateFileName
- the template file name to usepublic rx.Single<Buffer> rxRender(io.vertx.core.json.JsonObject context, String templateFileName)
context
- the routing contexttemplateFileName
- the template file name to usepublic void clearCache()
public void render(Map<String,Object> context, String templateFileName, io.vertx.core.Handler<io.vertx.core.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.public void render(Map<String,Object> context, String templateFileName)
context
- the routing contexttemplateFileName
- the template file name to usepublic rx.Single<Buffer> rxRender(Map<String,Object> context, String templateFileName)
context
- the routing contexttemplateFileName
- the template file name to usepublic <T> T unwrap()
public static TemplateEngine newInstance(io.vertx.ext.web.common.template.TemplateEngine arg)
Copyright © 2021 Eclipse. All rights reserved.