The sample php Template
composer require papac/tintin
require 'vendor/autoload.php';
$loader = new Tintin\Loader\Filesystem(__DIR__.'/views');
$tintin = new Tintin\Tinitin($loader, [
'cache' => true,
'cache_dir' => '/path/to/the/cache/directory',
'extension' => 'tt',
'expire' => ture
]);
echo $tintin->render('Hello {{name}}', ['name' => 'tintin']);
// -> Hello tintin
@if name == 'tintin':
{{ name }}
@elseif name == 'template':
{{ name }}
@else:
{{ name }}
@endif
@loop $names as $name:
@if $name == 'tintin':
...
@endif
@endloop
@include('filename')