public class FreeMarkerTemplateEngineImpl extends CachingTemplateEngine<freemarker.template.Template> implements FreeMarkerTemplateEngine
extensionDEFAULT_TEMPLATE_EXTENSION| Constructor and Description |
|---|
FreeMarkerTemplateEngineImpl(Vertx vertx,
String extension) |
| Modifier and Type | Method and Description |
|---|---|
void |
render(Map<String,Object> context,
String templateFile,
Handler<AsyncResult<Buffer>> handler)
Render the template.
|
<T> T |
unwrap()
Returns the underlying engine, so further configurations or customizations may be applied.
|
adjustLocation, clearCache, getTemplate, putTemplateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createclearCache, render, render, renderpublic <T> T unwrap()
TemplateEngineunwrap in interface TemplateEngineT - the engine object type.public void render(Map<String,Object> context, String templateFile, Handler<AsyncResult<Buffer>> handler)
TemplateEnginerender in interface TemplateEnginecontext - the routing contexttemplateFile - the template file name to usehandler - the handler that will be called with a result containing the buffer or a failure.Copyright © 2021. All rights reserved.