About this plugin
This plugin adds and loads philo/laravel-blade to your WordPress installation.
It loads two functions, which enable you to use the Blade render engine in your templates which make your themes better readable.
Usage
The plugin adds two functions:
– render_blade_view (void, echoes the content)
– get_rendered_blade_view (string)
Both functions take the same parameters:
1. view (required, string)
2. attributes (optional, array)
When installed, the plugin creates a “views” folder in your theme directory. php extension).
The “views” folder may contain subfolders.
Example
php:
blade
@if($show_text)
{{ $text }}
@endif
php:
php
php
article', [
'show_text' => true,
',
]);
”
Blade
Blade is a template engine which is mainly used by Laravel. 1/blade
1.
License
This file is part of Blade Engine.
Blade Engine is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published
by the Free Software Foundation.
Blade Engine is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
org/licenses/.