Overview of the FirstSpirit template syntax
All template syntax terms are described in detail in the following chapters under the respective navigation point in the left-hand navigation area:
Instructions
Instructions: In the context of programming languages an instruction is understood to be a formulated individual regulation to be executed while working through the program. Instructions are usually allocations, control instructions (such as jumps/skips, loops and conditional instructions) and procedure invocations.
Within FirstSpirit , special tags are used for this purpose which begin with an introductory "$CMS_" and end with a ")$". These instructions can be used for all kinds of different outputs in all areas of the Template Store.
Expressions
Expressions: In general an expression is understood to be a construct which can be evaluated within a context and which delivers a value. A prescribed semantic must be adhered to.
The expressions include, among other things, working with operators or the Invocation of methods.
Operators are used to control command sequences. For example, a differentiation is made between comparative operators (relative operators), arithmetical operators and logical operators, which can also be used for template development in FirstSpirit.
In addition, special string operators and lambda expressions are explained.
Data types
Data types: In general a data type is understood to be the summary of a specific object set (for example character strings) and the methods allowed on this set (for example conversion methods). Each data type can be assigned a quantity or set of variables or constants which must correspond to the semantics of the data type and on which specific methods assigned to the data type can be invoked.
Functions
Functions: In FirstSpirit functions are always defined in the HEADER area of a template. Functions, unlike Methods, are not invoked on an object and are only executed once, during the generation of a page.
System objects
System objects: System objects can be used to access information, data and objects within the templates. This is useful, for example, in the generation and creation of a preview. Such information can be, for example, the starting time of the generation, the ID of the section or the page or the language currently being generated.