Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 976 Bytes

File metadata and controls

42 lines (30 loc) · 976 Bytes

Schranz Template Renderer Integration for Mustache

Integrate the templating Mustache Adapter into the Spiral Framework.

Part of the Schranz Templating Project.

Installation

Install this package via Composer:

composer require schranz-templating/spiral-mustache-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\Mustache\Bootloader\MustacheBootloader::class,
    ];
}

Configuration

The integration provides the following configuration.

// app/config/schranz_templating_mustache.php

declare(strict_types=1);

return [
    'path' => 'app/views',
    'cache_dir' => 'runtime/cache/cache',
];