schranz-templating/spiral-plates-integration

模板渲染器与螺旋通过板式模板引擎集成。

0.1.0 2022-11-14 21:24 UTC

This package is auto-updated.

Last update: 2024-08-29 06:02:09 UTC


README

Plates 适配器集成到 Spiral 框架中。

Schranz 模板项目的一部分。

安装

使用 Composer 安装此包

composer require schranz-templating/spiral-plates-integration

如果框架没有自动添加,请在您的 app/src/Application/Kernel.php 中注册 Bootloader 类

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

配置

集成提供以下配置。

// app/config/schranz_templating_plates.php

declare(strict_types=1);

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