Class: HandlebarsTemplateEngine

vertx-web-js/handlebars_template_engine~ HandlebarsTemplateEngine

new HandlebarsTemplateEngine()

A template engine that uses the Handlebars library.
Source:

Methods

isCachingEnabled() → {boolean}

Source:
Returns:
Type
boolean

render(arg0, arg1, arg2, arg3)

Parameters:
Name Type Description
arg0 RoutingContext
arg1 string
arg2 string
arg3 function
Source:

setExtension(extension) → {HandlebarsTemplateEngine}

Set the extension for the engine
Parameters:
Name Type Description
extension string the extension
Source:
Returns:
a reference to this for fluency
Type
HandlebarsTemplateEngine

setMaxCacheSize(maxCacheSize) → {HandlebarsTemplateEngine}

Set the max cache size for the engine
Parameters:
Name Type Description
maxCacheSize number the maxCacheSize
Source:
Returns:
a reference to this for fluency
Type
HandlebarsTemplateEngine