Class: Combyne

index. Combyne

new Combyne(template, data)

Represents a Combyne template.
Parameters:
Name Type Description
template string The template to compile.
data object Optional data to compile.
Source:

Members

(static) Combyne.settings :object

Expose the global template settings.
Type:
  • object
Source:

(static) Combyne.VERSION :string

Attach the version number.
Type:
  • string
Source:

(static) Combyne#registerFilter

Register a filter into the template.
Source:
See:

(static) Combyne#registerPartial

Register a partial into the template.
Source:
See:

Methods

(static) Combyne#render(data) → {string}

Render the template with data.
Parameters:
Name Type Description
data object The data to provide to the template.
Source:
Returns:
Rendered template.
Type
string