2022.1

Table Of Contents
Global functions
Function Description
"fatalError
(message)" on
page1348
Triggers a fatal error that aborts content creation.
"loadhtml()" on
page1358
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
page1361
Loads JSON data from a URL. This is a simple way to retrieve content
from external systems.
"query()" on
page1379
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
page1476
This function returns information about an image resource. It can also
be used to check if a file exists.
"translate()" on
page1465
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1348
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 1345