Node variables

A Node variable embodies a node in a tree structure. Node variables were introduced to help the handling of XML documents, but they can be used for the modeling of other tree structures as well. A node variable has the following properties, provided by the methods of TemplateNodeModel interface:

On the FTL side, the direct utilization of node properties is done with node built-ins, and with the visit and recurse macros.

In most use cases, variables that implement TemplateNodeModel, implement other interfaces as well, since node variable properties just provide the basic infrastructure for navigating between nodes. For a concrete example, see how FreeMarker deals with XML.


Page generated: 2004-06-15 22:17:59 GMT FreeMarker Manual -- For FreeMarker 2.3