1. Go to this page and download the library: Download wackowiki/templatest library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wackowiki / templatest example snippets
use Templatest\Templatest;
$tpl = Templatest::read('hello.tpl', '/path/to/cache');
$tpl->title = 'My Page';
$tpl->name = 'World';
$tpl->items_item_text = 'first'; // underscore-split path: items → item → text
$tpl->items_item_text = 'second'; // second iteration of same pattern
echo $tpl;
function my_pull(bool $is_block, string $loc, ...$args): string