schranz-templating / mezzio-handlebars-integration
A integration of template renderer into mezzio via handlebars template engine.
Package info
github.com/schranz-templating/mezzio-handlebars-integration
pkg:composer/schranz-templating/mezzio-handlebars-integration
0.1.0
2022-11-06 17:02 UTC
Requires
- php: ^7.0 || ^8.0
- psr/container: ^1.0 || ^2.0
- schranz-templating/handlebars-adapter: ^0.1
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Integrate the templating Handlebars Adapter into the Mezzio Framework.
Part of the Schranz Templating Project.
Installation
Install this package via Composer:
composer require schranz-templating/mezzio-handlebars-integration
Register the ConfigProvider class in your config/config.php if not already automatically
added by the framework:
// ... $aggregator = new ConfigAggregator([ // ... \Schranz\Templating\Integration\Mezzio\Handlebars\ConfigProvider::class, ]);
Configuration
The following configuration is available:
// src/App/src/ConfigProvider.php class ConfigProvider { public function __invoke(): array { return [ // ... 'handlebars' => [ 'path' => 'src/App/templates', 'cache_dir' => 'data/cache/handlebars', ], ]; } }