1.5

Table Of Contents
Function Description
on
page454
placed into a variable or into a set of HTML elements.
"loadjson()"
on
page456
Loads jsondata from a URL. This is a simple way to retrieve content from
external systems.
"query()" on
page462
Performs a query in the template's contents and creates a new result set
containing the HTML elements that match the given CSS selector.
Examples of iterator functions
Function Description
"Each" on
page446
A generic iterator function, to iterate over the elements in the result set
"For...in" on
page450
Iterates over the enumerable properties of an object, in arbitrary order. For
each distinct property, statements can be executed.
add()
The add() function allowsyou to add elements to a set of HTML elements that match the
selector of the script or of another query in the template (see "query()" on page462).
add(content)
Returns the union of this result or result set and other content.
content
A query result. This can be an HTML string or a result set.
Examples
Add one result set to another
This script adds one query result to another and sets the background color to yellow.
Page 426