TinyTemplate Tests
Variable
{working}
{variable}
Variable Array
{working_array[check]}
{variable[index]}
If
{if:varif}
{working}
{endif}
{if:variable}{endif}
Ifnot
{ifnot:varnot}
{working}
{endif}
{ifnot:variable}{endif}
Else
{if:varnot}
{else}
{working}
{endif}
{if:variable}{else}{endif}
Elseif
{if:varnot}
{else:varif}
{working}
{endif}
{if:variable}{else:variable}{endif}
If Condition (Greater)
{if:varcondition>3}
{working}
{endif}
{if:variable>value}{endif}
If Condition (Lesser)
{if:varcondition<5}
{working}
{endif}
{if:variable<value}{endif}
If Condition (Greater Or Equal)
{if:varcondition>=4}
{working}
{endif}
{if:variable>=value}{endif}
If Condition (Lesser Or Equal)
{if:varcondition<=4}
{working}
{endif}
{if:variable<=value}{endif}
If Condition (Equal)
{if:varcondition==4}
{working}
{endif}
{if:variable==value}{endif}
If Condition (Not Equal)
{if:varcondition!=5}
{working}
{endif}
{if:variable!=value}{endif}
Loop
{loop:varlist}
{item}
{endloop}
{loop:list}{variable}{endloop}
PHP code
The code should display as a comment block
Import
{import:test2.htm}
Custom rule
{translate:generic,hello_world}
{translate:generic,hello_world}