Skip to content

3. Produce

Suppenhuhn79 edited this page May 12, 2021 · 4 revisions

Imported page snippets become members of the pageSnippet-object and provide the produce()-method for generating the corresponding element.

htmlElement = pageSnippets.<snippet>.produce(owner, variables, namespaceURI)
  • owner <object> object that provides all methods for event handlers, function calls and post-production.
    Optional, default: window.
  • variables <object> JSON containing all variables used.
    Optional, default: {}.
  • namespaceURI <string> if you want to produce anything other than HTML. For HTML to include in the current document this must be null.
    Optional, default: null.

Returns a HTMLElement that has been generated from the snippet template.


Monitor your console on any production issues.

Clone this wiki locally