M Public | 1.0.x - 1.x.x

On This Page

The Valvoid\Mosaic\Mosaic object is the runtime entry point of the template engine. It provides access to template views and handles their rendering using the supplied data. Typical usage:

use Valvoid\Box\Box;
use Valvoid\Mosaic\Mosaic;

$box = new Box;
$mosaic = $box->get(Mosaic::class);

View Method

The method renders a template using the provided data and returns the resulting view as a string:

$view = $mosaic->getView("template",=> "any");