duon / cms-boiler
Boiler templates for Duon CMS
dev-main
2025-04-01 18:25 UTC
Requires
- php: >=8.1
- duon/boiler: dev-main
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- duon/cms: dev-main
- duon/dev: ^1.1
- ernst/coverlyzer: ^0.2
- nyholm/psr7: ^1.5
- nyholm/psr7-server: ^1
- phpunit/phpunit: ^12.0
- staabm/annotate-pull-request-from-checkstyle: ^1.8
- vimeo/psalm: ^6.10
This package is auto-updated.
Last update: 2025-04-01 18:30:33 UTC
README
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);