Primoz Trubar

 Trubar
 Templates


Using templates we can describe how the data from the catalog will be shown. This description is an ordinary HTML text, which includes some special elements.

Variables: {{variable}}

All substrings of the form {{variable}} will be replaced with the value of the variable variable. If the variable is not defined the empty string will be used as its value.

Conditional including: [[condition text]]

Conditional including means that some text will be included into document only if given condition is satisfied. In current version of Trubar, the programs recognize only one type of conditions. This condition is a variable name. The condition holds, if this variable is defined. Also we can't say what to do, if condition is false.

Example:

[[&date Date: {{&date}}]]
back; forward; index