Interface FreeMarkerTemplateEngine

All Superinterfaces:
TemplateEngine

public interface FreeMarkerTemplateEngine extends TemplateEngine
A template engine that uses the FreeMarker library. The unwrap() shall return an object of class Configuration
Author:
Paulo Lopes
  • Field Details

    • DEFAULT_TEMPLATE_EXTENSION

      static final String DEFAULT_TEMPLATE_EXTENSION
      Default template extension
      See Also:
  • Method Details

    • 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 or null when the engine cannot unwrap it.
      Specified by:
      unwrap in interface TemplateEngine
      Returns:
      the engine instance.