schranz-templating/spiral-plates-integration

A integration of template renderer into spiral via plates template engine.

0.1.0 2022-11-14 21:24 UTC

This package is auto-updated.

Last update: 2024-11-29 06:47:34 UTC


README

Integrate the templating Plates Adapter into the Spiral Framework.

Part of the Schranz Templating Project.

Installation

Install this package via Composer:

composer require schranz-templating/spiral-plates-integration

Register the Bootloader class in your app/src/Application/Kernel.php if not already automatically added by the framework:

class Kernel extends \Spiral\Framework\Kernel
{
    protected const LOAD = [
        // ...
        \Schranz\Templating\Integration\Spiral\Plates\Bootloader\PlatesBootloader::class,
    ];
}

Configuration

The integration provides the following configuration.

// app/config/schranz_templating_plates.php

declare(strict_types=1);

return [
    'paths' => [
        'app/views'
    ],
];