HandlebarsTemplate

HandlebarsTemplate

Class represents HandlebarsTemplate

Constructor

new HandlebarsTemplate(engine)

Source:

creates a new HandlebarsTemplate

Parameters:
Name Type Description
engine function

template engine

Methods

createView(template) → {function}

Source:

creates a new hbs view

Parameters:
Name Type Description
template string
Returns:
Type
function

render(view, data) → {string}

Source:

render view

Parameters:
Name Type Description
view function
data object
Returns:
Type
string