fiveorbs / cms-boiler
Boiler templates for FiveOrbs CMS
dev-main
2024-12-04 15:39 UTC
Requires
- php: >=8.1
- fiveorbs/boiler: dev-main
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- ernst/coverlyzer: ^0.1.1
- fiveorbs/cms: dev-main
- fiveorbs/dev: ^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-12-04 15:40:16 UTC
README
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);