A simple output

Besides the fx-fore element we have a fx-output here which - well - outputs a data node.

Note the ref attribute. ref stands for 'reference' and is a pointer to some data node. Currently Fore supports XML and JSON as its data formats.

What is happening here?

When the page is loaded the Fore element will start initialization. If it does not find a fx-model one will get generated with a default instance.

Fore will look for elements having a ref and create data nodes using the value of the reference as name for the property and its content as value.

This is what is auto-generated for you:

The form holds a single fx-model which itself contains a fx-instance element. This is where our actual data are living. A form can contain a single model but as many fx-instance elements as you like.