2022.1

Table Of Contents
Global functions
Function Description
"fatalError
(message)" on
page802
Triggers a fatal error that aborts content creation.
"loadhtml()" on
page810
Loads HTML data from an HTML (snippet). The returned HTML can be
placed into a variable or into a set of HTML elements.
"loadjson()" on
page814
Loads JSON data from a URL. This is a simple way to retrieve content
from external systems.
"query()" on
page831
Performs a query in the template's contents and creates a new result set
containing the HTML elements that match the given CSS selector.
"resource()" on
page926
This function returns information about an image resource. It can also
be used to check if a file exists.
"translate()" on
page916
Gets the translation of a source text with an (optional) context. It returns
the message as-is if no translation is found.
Examples of iterator functions
Function Description
"each()"
below
A generic iterator function, to iterate over the elements in the result set.
"for(... in ...)"
on page802
Iterates over the enumerable properties of an object, in arbitrary order. For
each distinct property, statements can be executed.
each()
A generic iterator function, to iterate over the elements in a result set.
Page 799