1 A template is constructed from a charstream. Everything that is not in "<?" to "?>" will be outputted directly. Text in these markers will be interpreted is template scripting syntax. The following strings are valid:
3 - <?=$variblename?> will output "variablename".
4 if "variablename" is an Outputable output this thing recursively.
5 else turn it into a String (Object.toString()) and output it.
7 - <?=_This is free Text.?> will translate "This is free Text." into the users language, (escaped) and output it.
9 - <?=s,$var1,$var2,$var3,...,$varn,This %s is, %s free.?>
10 Translate the last string. Output $var1,...,$varn replaced into the %s positions in the translated string.
12 - <? if($variable) { ?>
13 Output/execute the text until "<? } ?>" only if $variable not null or Boolean.FALSE.
15 - <? foreach($variable) { ?>
16 If $variable is an "IterableDataset"
17 Output/execute the text until "<? } ?>" repeated as $variable suggests.
18 Special variables that $variable defines can be used in the inner text.