Variables in HTML templates

<< Click to Display Table of Contents >>

Navigation:  More Advanced Procedures > HTML Output and HTML Templates >

Variables in HTML templates

You can use all global predefined variables and user-defined variables in all HTML templates. In addition to this there are a number of special HTML template variables, which are only relevant in HTML templates.

User-defined variables from your projects and skins are exported to a JavaScript object for reference in your scripts. See below for details.

In addition to these variables you can also use predefined and user-defined conditional switches to include or exclude content on the basis of conditions. This is particularly useful for variables, which are often only relevant in certain contexts. For details see Conditional output in HTML templates.


flag_green      Key Information

When you are using a skin remember that variables can be stored either in your project or in the skin. However, if you create variables with the same name in both the project and the skin, the value defined in the skin will be used.

Click to expand/collapseVariables reference
Click to expand/collapseHow to use user-defined variables in HTML templates
Click to expand/collapseUser-defined variables in your own scripts
Click to expand/collapseHow to use predefined variables in HTML templates
Click to expand/collapseUsing editable variables in HTML templates

See also:

Editing HTML templates

Global predefined variables (reference list)

HTML template variables (reference list)

Conditional output in HTML templates

The power of editable variables