fm:Var


This component will allow you set variables for use in the templates,

Example

<fm:Var key="foo" value="bar"> {$vars_foo} <br/> </fm:Var>

Results

bar

Supported Attributes

NameRequiredDefaultDescription
keyRequiredN/AThe name of the variable
valueRequiredN/AThe value you want to assign to the variable.

Template variables

NameDescription
vars_{key}The variable you specified if you provided key="foo" the variable would be $vars_foo