templado / tracer
Templado Tracing Helper
1.0.0
2018-10-22 22:17 UTC
Requires
- php: ^7.2
- templado/engine: ^2.2
This package is auto-updated.
Last update: 2024-10-23 12:51:13 UTC
README
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);