Show:

Q.Mustache Class

Module: Q

Creates a Q.Mustache object

Item Index

Methods

render

(
  • template
  • data
  • partials
)
String | Null

Render mustache template

Parameters:

  • template String

    The template name

  • data Object

    Optional. The data to render

  • partials Array

    Optional. The names of partials to load and use for rendering.

Returns:

String | Null:

render

(
  • content
  • data
  • partials
)
String | Null

Render mustache literal source string

Parameters:

  • content String

    The source content

  • data Object

    Optional. The data to render

  • partials Array

    Optional. The names of partials to load and use for rendering.

Returns:

String | Null:

template

(
  • path
)
String | Null

Search for mustache template

Parameters:

  • path String

    The template name

Returns:

String | Null: