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

This package is not auto-updated.

Last update: 2024-07-05 21:57:52 UTC


README

Installation

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 :-)