schranz-templating/laminas-latte-integration

A integration of template renderer into laminas via latte template engine.

0.1.0 2022-09-17 15:53 UTC

This package is auto-updated.

Last update: 2024-04-29 04:34:33 UTC


README

Integrate the templating Latte Adapter into the Laminas Framework.

Part of the Schranz Templating Project.

Installation

Install this package via Composer:

composer require schranz-templating/laminas-latte-integration

Add the module to the config/modules.config.php.php:

return [
    // ...
    'Schranz\Templating\Integration\Laminas\Latte',
];

Configuration

The example and default configuration can be found in config/module.config.php.

Extensions

To extend Latte functionality you can create a new service extending from Latte\Extension the service need to be registered and its service name configured the module.config.php:

return [
    // ...
    'schranz_templating_latte' => [
        'extensions' => [
            \App\Latte\MyExtension::class,
            // or
            'my_extension',
        ],
    ],
];