conia / cms-boiler
Boiler templates for Conia CMS
dev-main
2024-01-21 18:41 UTC
Requires
- php: >=8.1
- conia/boiler: dev-main
Requires (Dev)
- conia/cms: dev-main
- conia/development: ^1.0
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- ernst/coverlyzer: ^0.1.1
- nyholm/psr7: ^1.5
- nyholm/psr7-server: ^1
- phpunit/phpunit: ^10.4
- staabm/annotate-pull-request-from-checkstyle: ^1.8
- vimeo/psalm: ^5.7
This package is auto-updated.
Last update: 2024-10-09 23:25:01 UTC
README
Allows to use Boiler templates in Conia CMS.
use Conia\Cms\Cms; use Conia\Cms\Boiler\Renderer; use Conia\Core\App; $cms = new Cms(); $cms->renderer('template', Renderer::class)->args(function () { return [ 'default' => 'context', 'variables' => 13, ]; }); $app = App::create(); $app->load($cms);