MustacheTemplate

MustacheTemplate

Class represents MustacheTemplate

Constructor

new MustacheTemplate(engine)

Source:

creates a new MustacheTemplate

Parameters:
Name Type Description
engine function

template engine

Methods

createView(template) → {string}

Source:

creates a new mustache view

Parameters:
Name Type Description
template string
Returns:
Type
string

render(view, data) → {string}

Source:

render view

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