Download the PHP package pustato/laravel-blade-render-flow without Composer
On this page you can find all versions of the php package pustato/laravel-blade-render-flow. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pustato/laravel-blade-render-flow
More information about pustato/laravel-blade-render-flow
Files in pustato/laravel-blade-render-flow
Download pustato/laravel-blade-render-flow
More information about pustato/laravel-blade-render-flow
Files in pustato/laravel-blade-render-flow
Vendor pustato
Package laravel-blade-render-flow
Short Description Render flow extension for Laravel Blade
License MIT
Package laravel-blade-render-flow
Short Description Render flow extension for Laravel Blade
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-blade-render-flow
Render flow extension for Laravel Blade
This package adds a several blade directives that lets you reuse a parts of templates.
Install
Require this package with composer:
Add the ServiceProvider to the providers
section in your config/app.php
:
Usage
@capture
Lets you render a section of template once and reuse it later.
@capture(block_name)
starts capturing block of template with nameblock_name
.@endcapture
ends block.@flushcapture
ends block and instantly renders it.@flush(block_name)
render stored block.@clearcapture([block_name])
ifblock_name
is specified, forgets block with this name, else - forgets all stored blocks.
Example:
Will be rendered to:
@template
Lets you specify a section of sub template to store it in a memory.
@templage(name)
starts sub template withname
.@endtemplate
ends sub template.@render(name[, params])
render a sub template with specified params (works like@include
).
Example:
Result:
All versions of laravel-blade-render-flow with dependencies
PHP Build Version
Package Version
The package pustato/laravel-blade-render-flow contains the following files
Loading the files please wait ....