#SET

#SET{variable,value} is used to store values locally within a template. They are retrievable, within the same template, using #GET{variable}. See also #GET.

Example

Store the value of a colour that already exists in the environment, otherwise use a default colour:

#SET{light,##ENV{light_colour,edf3fe}}
#SET{dark,##ENV{dark_colour,3874b0}}

<style class="text/css">
#contenu h3 {
    color:[(#GET{light})];
}

</style>

Author Mark Baber Published : Updated : 29/05/10

Translations : English, français