public class TemplateEngine extends TemplateEngine
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(TemplateEngine delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
TemplateEngine |
getDelegate() |
int |
hashCode() |
boolean |
isCachingEnabled()
Returns true if the template engine caches template files.
|
static TemplateEngine |
newInstance(TemplateEngine arg) |
void |
render(RoutingContext context,
String templateFileName,
Handler<AsyncResult<Buffer>> handler)
Deprecated.
|
void |
render(RoutingContext context,
String templateDirectory,
String templateFileName,
Handler<AsyncResult<Buffer>> handler)
Deprecated.
|
Single<Buffer> |
rxRender(RoutingContext context,
String templateFileName)
Deprecated.
|
Single<Buffer> |
rxRender(RoutingContext context,
String templateDirectory,
String templateFileName)
Deprecated.
|
String |
toString() |
render, render, rxRender, rxRenderpublic static final io.vertx.lang.rx.TypeArg<TemplateEngine> __TYPE_ARG
public TemplateEngine(TemplateEngine delegate)
public String toString()
toString in class TemplateEnginepublic boolean equals(Object o)
equals in class TemplateEnginepublic int hashCode()
hashCode in class TemplateEnginepublic TemplateEngine getDelegate()
getDelegate in class TemplateEngine@Deprecated public void render(RoutingContext 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 Single<Buffer> rxRender(RoutingContext context, String templateFileName)
context - the routing contexttemplateFileName - the template file name to use@Deprecated public void render(RoutingContext context, String templateDirectory, String templateFileName, Handler<AsyncResult<Buffer>> handler)
NOTE if you call method directly (i.e. not using TemplateHandler) make sure
that templateFileName is sanitized via
context - the routing contexttemplateDirectory - the template directory to usetemplateFileName - the relative template file name to usehandler - the handler that will be called with a result containing the buffer or a failure.@Deprecated public Single<Buffer> rxRender(RoutingContext context, String templateDirectory, String templateFileName)
NOTE if you call method directly (i.e. not using TemplateHandler) make sure
that templateFileName is sanitized via
context - the routing contexttemplateDirectory - the template directory to usetemplateFileName - the relative template file name to usepublic boolean isCachingEnabled()
isCachingEnabled in class TemplateEnginepublic static TemplateEngine newInstance(TemplateEngine arg)
Copyright © 2019 Eclipse. All rights reserved.