interface HandlebarsTemplateEngine : TemplateEngine
A template engine that uses the Handlebars library.
Author
Tim Fox
static val DEFAULT_MAX_CACHE_SIZE: Int
Default max number of templates to cache |
|
static val DEFAULT_TEMPLATE_EXTENSION: String
Default template extension |
open static fun create(): HandlebarsTemplateEngine
Create a template engine using defaults |
|
abstract fun getHandlebars(): Handlebars
Get a reference to the internal Handlebars object so it can be configured. |
|
abstract fun getResolvers(): Array<ValueResolver>
Return the array of configured handlebars context value resolvers. |
|
abstract fun setExtension(extension: String): HandlebarsTemplateEngine
Set the extension for the engine |
|
abstract fun setMaxCacheSize(maxCacheSize: Int): HandlebarsTemplateEngine
Set the max cache size for the engine |
|
abstract fun setResolvers(vararg resolvers: ValueResolver): HandlebarsTemplateEngine
Set the array of handlebars context value resolvers. |