@absolunet/ioc2.1.0

View on GitHub

Factory

View factory that generate a fully rendered template as string from view paths and view-model.

Members

(static) dependencies :Array.<string>

Source:
Class dependencies: ['view.resolver', 'view.engine'].

Methods

make(name, data)

Source:
Create a rendered template from a view name and data.
Parameters:
Name Type Description
name string The view name.
data * The view-model data.
Returns:
The rendered view template.
Type
string