TwigTemplate

TwigTemplate

Class represents TwigTemplate

Constructor

new TwigTemplate(engine)

Source:

creates a new TwigTemplate

Parameters:
Name Type Description
engine function

Methods

createView(template) → {function}

Source:

creates a new twig 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