fiveorbs/cms-boiler

Boiler templates for FiveOrbs CMS

dev-main 2024-11-17 22:15 UTC

This package is auto-updated.

Last update: 2024-11-17 22:19:27 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);