schranz-templating/mezzio-plates-integration
最新稳定版本:0.1.0
Composer 安装命令:
composer require schranz-templating/mezzio-plates-integration
包简介
A integration of template renderer into mezzio via plates template engine.
README 文档
README
Integrate the templating Plates Adapter into the Mezzio Framework.
Part of the Schranz Templating Project.
Installation
Install this package via Composer:
composer require schranz-templating/mezzio-plates-integration
Register the ConfigProvider class in your config/config.php if not already automatically
added by the framework:
// ... $aggregator = new ConfigAggregator([ // ... \Mezzio\Plates\ConfigProvider::class, \Schranz\Templating\Integration\Mezzio\Plates\ConfigProvider::class, ]);
Configuration
The Plates Integration has currently no configuration as Plates is supported out of the box by Mezzio and can be configured via the Mezzio Plates Renderer.
Usage with other Mezzio renderer
To use it side by side with other Mezzio renderer integrations you need configure the extension of the files:
// src/App/src/ConfigProvider.php class ConfigProvider { public function __invoke(): array { return [ // ... 'plates' => [ 'extension' => 'php', ], ]; } }
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-11-06