Skip to content

3. Produce

Suppenhuhn79 edited this page May 26, 2021 · 4 revisions

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

element = pageSnippets.<snippet>.produce(owner, data, _parentSnippetKey)

Returns an Element subtype of the specific type that has been generated from the snippet template. Usually this will be a subtype of HTMLElement.


Monitor your console on any production issues.

Producing other than HTML

If your desired output is anything other than HTML, just declare its namespace in the <ps:pagesnippets> root element. See Define: Namespaces.

Clone this wiki locally