Integrate the templating Latte Adapter into the Spiral Framework.
Part of the Schranz Templating Project.
Install this package via Composer:
composer require schranz-templating/spiral-latte-integration
Register the Bootloader class in your app/src/Application/Kernel.php
if not already automatically
added by the framework:
class Kernel extends \Spiral\Framework\Kernel
{
protected const LOAD = [
// ...
\Schranz\Templating\Integration\Spiral\Latte\Bootloader\LatteBootloader::class,
];
}
The integration provides the following configuration.
// app/config/schranz_templating_latte.php
declare(strict_types=1);
return [
'path' => 'app/views',
'cache_dir' => 'runtime/cache/latte',
];