Skip to content

schranz-templating/laravel-latte-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Schranz Template Renderer Integration for Latte

Integrate the templating Latte Adapter into the Laravel Framework.

Part of the Schranz Templating Project.

Installation

Install this package via Composer:

composer require schranz-templating/laravel-latte-integration

Depending on the projects setup maybe following need to be added to the config/app.php:

    'providers' => [
        // ...
        Schranz\Templating\Integration\Laravel\Latte\SchranzTemplatingLatteProvider::class,
    ],

Configuration

The example and default configuration can be found in config/schranz_templating_latte.php.

Extensions

To extend Latte functionality you can create a new service extending from Latte\Extension the service need to be tagged with latte.extension to be registered as Latte Extension:

$app->tag(\App\Latte\MyExtension::class, 'latte.extension');

Read more about Latte Extensions in the Latte documentation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages