conia/cms-boiler

Boiler templates for Conia CMS

dev-main 2024-01-21 18:41 UTC

This package is auto-updated.

Last update: 2024-11-09 23:38:29 UTC


README

Software License Coverage Status Psalm coverage Psalm level Quality Score

Allows to use Boiler templates in Conia CMS.

use Conia\Cms\Cms;
use Conia\Cms\Boiler\Renderer;
use Conia\Core\App;

$cms = new Cms();
$cms->renderer('template', Renderer::class)->args(function () {
    return [
        'default' => 'context',
        'variables' => 13,
    ];
});

$app = App::create();
$app->load($cms);