Introduction
Tplix has several types of variables. The type of the variable depends on what symbol it is prefixed or enclosed within.
- Variables assigned from PHP
- Variables Scope
- Variables loaded from config files
- {$tplix} reserved variable
Variables in Tplix can be either displayed directly or used as arguments for tags, attributes and modifiers, inside conditional expressions, etc. To print a variable, simply enclose it in the delimiters so that it is the only thing contained between them.
{$Name}
{$product.part_no} <b>{$product.description}</b>
{$Contacts[row].Phone}
<body bgcolor="{#bgcolor#}">
{literal}..{/literal} blocks are used for escaping blocks of template logic. You can also escape the braces individually with {ldelim}, {rdelim} tags or {$tplix.ldelim},{$tplix.rdelim} variables.