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 io.vertx.lang.rx.TypeArg<TemplateEngine> |
__TYPE_ARG |
Constructor and Description |
---|
TemplateEngine(Object delegate) |
TemplateEngine(TemplateEngine delegate) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clears any internal caches used by this engine.
|
boolean |
equals(Object o) |
TemplateEngine |
getDelegate() |
int |
hashCode() |
static TemplateEngine |
newInstance(TemplateEngine arg) |
void |
render(JsonObject context,
String templateFileName)
Render the template.
|
void |
render(JsonObject context,
String templateFileName,
Handler<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,
Handler<AsyncResult<Buffer>> handler)
Render the template.
|
Single<Buffer> |
rxRender(JsonObject context,
String templateFileName)
Render the template.
|
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 io.vertx.lang.rx.TypeArg<TemplateEngine> __TYPE_ARG
public TemplateEngine(TemplateEngine delegate)
public TemplateEngine(Object delegate)
public TemplateEngine getDelegate()
public 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.public void render(JsonObject context, String templateFileName)
context
- the routing contexttemplateFileName
- the template file name to usepublic Single<Buffer> rxRender(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, 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.public void render(Map<String,Object> context, String templateFileName)
context
- the routing contexttemplateFileName
- the template file name to usepublic 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(TemplateEngine arg)
Copyright © 2024 Eclipse. All rights reserved.