Skip to content

schranz-templating/spiral-handlebars-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Schranz Template Renderer Integration for Handlebars

Integrate the templating Handlebars Adapter into the Spiral Framework.

Part of the Schranz Templating Project.

Installation

Install this package via Composer:

composer require schranz-templating/spiral-handlebars-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\Handlebars\Bootloader\HandlebarsBootloader::class,
    ];
}

Configuration

The integration provides the following configuration.

// app/config/schranz_templating_handlebars.php

declare(strict_types=1);

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages