Skip to content

templado/tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Templado Tracer

Helper for tracing View Model calls within the Templado Engine

Warning

The Code within this repository was designed to work with Templado 4.x or earlier. It will not (yet) work Templado 5.x or later.

Sample Usage

$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);

About

Debugging Helper for Templado Engine

Resources

Stars

Watchers

Forks

Packages

No packages published