vertx / io.vertx.ext.web.templ / HandlebarsTemplateEngine

# HandlebarsTemplateEngine

`interface HandlebarsTemplateEngine : TemplateEngine`

A template engine that uses the Handlebars library.

Author
Tim Fox

### Properties

DEFAULT_MAX_CACHE_SIZE | `static val DEFAULT_MAX_CACHE_SIZE: Int` Default max number of templates to cache
DEFAULT_TEMPLATE_EXTENSION | `static val DEFAULT_TEMPLATE_EXTENSION: String` Default template extension

### Functions

create | `open static fun create(): HandlebarsTemplateEngine` Create a template engine using defaults
getHandlebars | `abstract fun getHandlebars(): Handlebars` Get a reference to the internal Handlebars object so it can be configured.
getResolvers | `abstract fun getResolvers(): Array<ValueResolver>` Return the array of configured handlebars context value resolvers.
setExtension | `abstract fun setExtension(extension: String): HandlebarsTemplateEngine` Set the extension for the engine
setMaxCacheSize | `abstract fun setMaxCacheSize(maxCacheSize: Int): HandlebarsTemplateEngine` Set the max cache size for the engine
setResolvers | `abstract fun setResolvers(vararg resolvers: ValueResolver): HandlebarsTemplateEngine` Set the array of handlebars context value resolvers.