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) |
io.reactivex.rxjava3.core.Single<Buffer> |
render(io.vertx.core.json.JsonObject context,
String templateFileName)
Render the template.
|
io.reactivex.rxjava3.core.Single<Buffer> |
render(Map<String,Object> context,
String templateFileName)
Render the template.
|
io.reactivex.rxjava3.core.Single<Buffer> |
rxRender(io.vertx.core.json.JsonObject context,
String templateFileName)
Render the template.
|
io.reactivex.rxjava3.core.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 io.reactivex.rxjava3.core.Single<Buffer> render(io.vertx.core.json.JsonObject context, String templateFileName)
context
- the routing contexttemplateFileName
- the template file name to usepublic io.reactivex.rxjava3.core.Single<Buffer> rxRender(io.vertx.core.json.JsonObject context, String templateFileName)
context
- the routing contexttemplateFileName
- the template file name to usepublic void clearCache()
public io.reactivex.rxjava3.core.Single<Buffer> render(Map<String,Object> context, String templateFileName)
context
- the routing contexttemplateFileName
- the template file name to usepublic io.reactivex.rxjava3.core.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 © 2022 Eclipse. All rights reserved.