duon/cms-boiler

Boiler templates for Duon CMS

dev-main 2025-04-01 18:25 UTC

This package is auto-updated.

Last update: 2025-04-01 18:30:33 UTC


README

Software License Psalm coverage Psalm level

Allows to use Boiler templates in the Duon CMS.

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

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

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