Hello @AhmadKarim
The Slim PHP-View library uses plain PHP code to render templates.
I think the most common way of merging header/body/footer files is by using the include and require statement.
<?php
require __DIR__ . '/header.html.php';
require __DIR__ . '/about.html.php';
require __DIR__ . '/footer.html.php';