Interface FreeMarkerTemplateEngine
-
- All Superinterfaces:
TemplateEngine
public interface FreeMarkerTemplateEngine extends TemplateEngine
A template engine that uses the FreeMarker library. Theunwrap()
shall return an object of classConfiguration
- Author:
- Paulo Lopes
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_TEMPLATE_EXTENSION
Default template extension
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static FreeMarkerTemplateEngine
create(Vertx vertx)
Create a template engine using defaultsstatic FreeMarkerTemplateEngine
create(Vertx vertx, String extension)
Create a template engine using defaultsfreemarker.template.Configuration
unwrap()
Returns the underlying engine, so further configurations or customizations may be applied ornull
when the engine cannot unwrap it.-
Methods inherited from interface io.vertx.ext.web.common.template.TemplateEngine
clearCache, render, render
-
-
-
-
Field Detail
-
DEFAULT_TEMPLATE_EXTENSION
static final String DEFAULT_TEMPLATE_EXTENSION
Default template extension- See Also:
- Constant Field Values
-
-
Method Detail
-
create
static FreeMarkerTemplateEngine create(Vertx vertx)
Create a template engine using defaults- Returns:
- the engine
-
create
static FreeMarkerTemplateEngine create(Vertx vertx, String extension)
Create a template engine using defaults- Returns:
- the engine
-
unwrap
freemarker.template.Configuration unwrap()
Description copied from interface:TemplateEngine
Returns the underlying engine, so further configurations or customizations may be applied ornull
when the engine cannot unwrap it.- Specified by:
unwrap
in interfaceTemplateEngine
- Returns:
- the engine instance.
-
-