@absolunet/ioc2.1.0

View on GitHub

Driver

Abstract driver that defines the basic interface for a view engine driver.

Extends

Members

engine :*

Source:
Inherited From:
Current engine accessor.

Methods

(abstract) make(view)

Source:
Create a template instance.
Parameters:
Name Type Description
view string The view name.
Returns:
The template instance.
Type
template

(abstract) render(view, data)

Source:
Render a template with the given data.
Parameters:
Name Type Description
view string The view name.
data * The view-model data.
Returns:
The rendered template as string.
Type
string

setEngine(engine)

Source:
Inherited From:
Set current engine.
Parameters:
Name Type Description
engine * The engine instance.
Returns:
The current instance.
Type
support.mixins.HasEngine