new $k.Mustache()
Built-in implemenation of Mustache.
See https://mustache.github.io
Methods
static$k.Mustache.render(template, data, partials) : string
Renders the template with the data
| Name | Type | Description |
|---|---|---|
template |
string |
The template string to be expanded |
data |
object |
The expansion data object |
partials |
object |
optional
Optional partials |
Throws:
| Type | Description |
|---|---|
| $k.exception.InvalidValue | If the mustache expansion runs into any error |
Returns:
| Type | Description |
|---|---|
| string | The expanded output |
static$k.Mustache.render(template, data, partials) : string
Renders the template with the data
| Name | Type | Description |
|---|---|---|
template |
string |
The template string to be expanded |
data |
object |
The expansion data object |
partials |
object |
optional
Optional partials |
Throws:
| Type | Description |
|---|---|
| $k.exception.InvalidValue | If the mustache expansion runs into any error |
Returns:
| Type | Description |
|---|---|
| string | The expanded output |