PHP code example of templado / tracer

1. Go to this page and download the library: Download templado/tracer 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/ */

    

templado / tracer example snippets


$html = \Templado\Engine\Templado::loadHtmlFile('...');
$tracer = new \Templado\Tracer\Tracer();

$traceModel = $tracer->start(new SampleModel());

$html->applyViewModel($traceModel);

$trace = $tracer->finish();

$printer = new \Templado\Tracer\CoveragePrinter();
echo $printer->toText($trace);