ziedmaaloul / laravel-fluid-bridge
Add TYPO3.Fluid Template Engine to Laravel 8 and 9 with custom function , Blade Still Working , Enjoy.
2.0
2022-11-10 23:02 UTC
Requires
- typo3fluid/fluid: ^2.7.2
Requires (Dev)
- phpmd/phpmd: ^2.4
- squizlabs/php_codesniffer: ^2.7
This package is not auto-updated.
Last update: 2025-01-04 00:32:25 UTC
README
composer require ziedmaaloul/laravel-fluid-bridge
In the config/app.php
add FluidServiceProvider
to the providers
section.
'providers' => [ Diego\Fluid\FluidServiceProvider::class, ],
Usage
Rendering By Trait in Page Folder
Diego\Fluid\Render::template('Welcome' , ['parameter' => 'parameter'] , 1);
This will resolve the template name to resources/views/Templates/Page/Welcome.html
Rendering By Trait Outside Page Folder
Diego\Fluid\Render::template('FolderOne/File' , ['parameter' => 'parameter'] , 0);
This will resolve the template name to resources/views/Templates/FolderOne/File.html
Enjoy :-)