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 | 
|---|---|
boolean | 
equals(Object o)  | 
TemplateEngine | 
getDelegate()  | 
int | 
hashCode()  | 
boolean | 
isCachingEnabled()
Returns true if the template template caches template files. 
 | 
static TemplateEngine | 
newInstance(TemplateEngine arg)  | 
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. 
 | 
Observable<Buffer> | 
renderObservable(JsonObject context,
                String templateFileName)
Deprecated. 
 
 | 
Observable<Buffer> | 
renderObservable(Map<String,Object> context,
                String templateFileName)
Deprecated. 
 
 | 
Single<Buffer> | 
rxRender(JsonObject context,
        String templateFileName)
Render the template. 
 | 
Single<Buffer> | 
rxRender(Map<String,Object> context,
        String templateFileName)
Render the template. 
 | 
String | 
toString()  | 
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.@Deprecated public Observable<Buffer> renderObservable(JsonObject context, String templateFileName)
rxRender(io.vertx.core.json.JsonObject, java.lang.String) insteadcontext - 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 boolean isCachingEnabled()
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.@Deprecated public Observable<Buffer> renderObservable(Map<String,Object> context, String templateFileName)
rxRender(io.vertx.core.json.JsonObject, java.lang.String) insteadcontext - 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 static TemplateEngine newInstance(TemplateEngine arg)
Copyright © 2020 Eclipse. All rights reserved.