$k. Mustache

new Mustache()

Built-in implemenation of Mustache. See https://mustache.github.io

Methods

(static) render(template, data, partialsopt) → {string}

Renders the template with the data

Parameters:
NameTypeAttributesDescription
templatestring

The template string to be expanded

dataobject

The expansion data object

partialsobject<optional>

Optional partials

Throws:

If the mustache expansion runs into any error

Type
$k.exception.InvalidValue
Returns:

The expanded output

Type: 
string