Extends
Members
(static) dependencies :Array.<string>
Class dependencies:
['app']
.
view :view.services.Factory
View factory.
engine :*
- Source:
- Inherited From:
Current engine accessor.
Methods
createCustomHelpers()
Create custom JSRender helper functions.
createInjectHelper()
Create "inject" helper function.
createConfigHelper()
Create "config" helper function.
createRouteHelper()
Create "route" helper function.
createTranslateHelper()
Create "t" helper function.
createDumpHelper()
Create "dump" helper function.
createCustomTags()
Create all JSRender custom tags.
createIncludeTag()
Create "include" tag.
JSRender already defines this tag, but an overwrite is necessary in order to use the view resolver.
make(view)
- Source:
- Overrides:
Create a template instance.
Parameters:
Name | Type | Description |
---|---|---|
view |
string | The view name. |
Returns:
The template instance.
- Type
- template
render(view, data)
- Source:
- Overrides:
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.