Simple replacements
A simple replacement is the replacement of parts of the template with any content. The variable can be contain a mixed value:
Syntax in templates
{$varname}
Example:
index.php
<?php
include 'div.php';
echo new div('index.tpl', [
'first_name' => 'Peter',
'last_name' => 'Pan'
]);
index.tpl
First name: {$first_name}
Last name: {$last_name}
Output
First name: Peter
Last name: Pan