Glasnost Help and Documentation
Developers
Templates
TAL and METAL
TAL
TAL Statements: Order of Operations
TAL Statements: Order of Operations
When an element contains several statements, they are executed in the following logical order:
- define: Variables are defined before being used.
- condition: Whether the element will be included commes next (it may depend on variables).
- repeat: Content replacement may be needed at each iteration of a repeat.
- content or replace.
- attributes is after replace, as replace could remove the element (and its attributes).
- omit-tag comes last.