Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 917 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 917 Bytes

Schranz Template Renderer Integration for Twig

Integrate the templating Twig Adapter into the Spiral Framework.

Part of the Schranz Templating Project.

Installation

Install this package via Composer:

composer require schranz-templating/spiral-twig-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\Twig\Bootloader\TwigBootloader::class,
    ];
}

Configuration

The Twig Integration has currently no configuration as Twig is supported out of the box by Spiral and can be configured via the Spiral Twig Views.