conia/chuck-boiler

Boiler templates for Chuck framework

dev-main 2023-03-07 15:50 UTC

This package is auto-updated.

Last update: 2024-12-20 14:37:49 UTC


README

Software License Coverage Status Psalm coverage Psalm level Quality Score

Allows to use Boiler templates in Chuck.

use Conia\Renderer\Boiler\Renderer;
use Conia\Chuck\{App, Config};

$app = App::create(new Config('app'));

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