Interface HandlebarsTemplateEngine

All Superinterfaces:
TemplateEngine

public interface HandlebarsTemplateEngine extends TemplateEngine
A template engine that uses the Handlebars library. The unwrap() shall return an object of class Handlebars
Author:
Tim Fox
  • Field Details

    • DEFAULT_TEMPLATE_EXTENSION

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

    • create

      static HandlebarsTemplateEngine create(Vertx vertx)
      Create a template engine using defaults
      Returns:
      the engine
    • create

      static HandlebarsTemplateEngine create(Vertx vertx, String extension)
      Create a template engine using defaults
      Returns:
      the engine
    • setResolvers

      HandlebarsTemplateEngine setResolvers(com.github.jknack.handlebars.ValueResolver... resolvers)
      Set the array of handlebars context value resolvers.
      Parameters:
      resolvers - the value resolvers to be used
      Returns:
      a reference to the internal Handlebars instance.
    • unwrap

      com.github.jknack.handlebars.Handlebars 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.