fiveorbs/cms-boiler

Boiler templates for FiveOrbs CMS

dev-main 2024-12-04 15:39 UTC

This package is auto-updated.

Last update: 2024-12-04 15:40:16 UTC


README

Software License Psalm coverage Psalm level

Allows to use Boiler templates in the FiveOrbs CMS.

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

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

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