schranz-templating / laravel-latte-integration
A integration of template renderer into laravel via latte template engine.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/schranz-templating/laravel-latte-integration
Requires
- php: ^7.0 || ^8.0
- illuminate/support: ^8.0 || ^9.0
- illuminate/view: ^8.0 || ^9.0
- schranz-templating/latte-adapter: ^0.1
README
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.