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.Constructor and Description |
---|
TemplateEngine(TemplateEngine delegate) |
Modifier and Type | Method and Description |
---|---|
Object |
getDelegate() |
static TemplateEngine |
newInstance(TemplateEngine arg) |
void |
render(RoutingContext context,
String templateFileName,
Handler<AsyncResult<Buffer>> handler)
Render
|
Observable<Buffer> |
renderObservable(RoutingContext context,
String templateFileName)
Render
|
public TemplateEngine(TemplateEngine delegate)
public Object getDelegate()
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.public Observable<Buffer> renderObservable(RoutingContext context, String templateFileName)
context
- the routing contexttemplateFileName
- the template file name to usepublic static TemplateEngine newInstance(TemplateEngine arg)
Copyright © 2016. All rights reserved.