Title: Blade Engine
Author: Lars Jansen
Published: <strong>06.08.2017</strong>
Last modified: 06.08.2017

---

Шукати плагіни

![](https://ps.w.org/wp-blade-engine/assets/banner-772x250.png?rev=1709215)

Цей плагін **не перевірявся з останніми 3-ма основними випусками WordPress**. Можливо,
він більше не може розроблятися або підтримуватися, і він може мати проблеми сумісності
при використанні з більш новими версіями WordPress.

![](https://ps.w.org/wp-blade-engine/assets/icon-256x256.png?rev=1709215)

# Blade Engine

 Від автора [Lars Jansen](https://profiles.wordpress.org/lars-2/)

[Завантажити](https://downloads.wordpress.org/plugin/wp-blade-engine.1.0.1.zip)

 * [Деталі](https://uk.wordpress.org/plugins/wp-blade-engine/#description)
 * [Відгуки](https://uk.wordpress.org/plugins/wp-blade-engine/#reviews)
 *  [Встановлення](https://uk.wordpress.org/plugins/wp-blade-engine/#installation)
 * [Розробка](https://uk.wordpress.org/plugins/wp-blade-engine/#developers)

 [Підтримка](https://wordpress.org/support/plugin/wp-blade-engine/)

## Опис

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. This
is where you put your blade templates (with the .blade.php extension).
 The “views”
folder may contain subfolders.

### Example

wp-contents/themes/your-theme/views/components/article.blade.php:
 `blade @if($show_text){{
$text }} @endif

wp-contents/themes/your-theme/functions.php:
 `php <?php render_blade_view('components.
article', [ 'show_text' => true, 'text' => 'Hello World!', ]);

When ran on any page, it will output “Hello World!”

### Blade

Blade is a template engine which is mainly used by Laravel. More information here:
https://laravel.com/docs/5.1/blade
 This plugin supports all the directives which
are available in Laravel 5.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.

Get a copy of the GNU General Public License in [http://www.gnu.org/licenses/](http://www.gnu.org/licenses/).

## Встановлення

 * Upload plugin files to your plugins folder, or install using WordPress built-
   in Add New Plugin installer;
 * Activate the plugin;

## Часті питання

  Installation Instructions

 * Upload plugin files to your plugins folder, or install using WordPress built-
   in Add New Plugin installer;
 * Activate the plugin;

## Відгуки

Для цього плагіна немає відгуків.

## Учасники та розробники

“Blade Engine” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій
вклад наступні учасники:

Учасники

 *   [ Lars Jansen ](https://profiles.wordpress.org/lars-2/)

[Перекладіть “Blade Engine” на вашу мову.](https://translate.wordpress.org/projects/wp-plugins/wp-blade-engine)

### Цікавитесь розробкою?

[Перегляньте код](https://plugins.trac.wordpress.org/browser/wp-blade-engine/), 
перегляньте [сховище SVN](https://plugins.svn.wordpress.org/wp-blade-engine/) або
підпишіться на [журнал розробки](https://plugins.trac.wordpress.org/log/wp-blade-engine/)
за допомогою [RSS](https://plugins.trac.wordpress.org/log/wp-blade-engine/?limit=100&mode=stop_on_copy&format=rss).

## Журнал змін

#### 1.0.0

 * Initial version

## Мета

 *  Версія **1.0.1**
 *  Останнє оновлення **9 років тому**
 *  Активних встановлень **10+**
 *  Версія WordPress ** 4.8 або вище **
 *  Tested up to **4.8.29**
 *  Мова
 * [English (US)](https://wordpress.org/plugins/wp-blade-engine/)
 * Позначки
 * [Blade](https://uk.wordpress.org/plugins/tags/blade/)[engine](https://uk.wordpress.org/plugins/tags/engine/)
   [Laravel](https://uk.wordpress.org/plugins/tags/laravel/)[render](https://uk.wordpress.org/plugins/tags/render/)
 *  [Розширений перегляд](https://uk.wordpress.org/plugins/wp-blade-engine/advanced/)

## Оцінки

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/wp-blade-engine/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-blade-engine/reviews/)

## Учасники

 *   [ Lars Jansen ](https://profiles.wordpress.org/lars-2/)

## Підтримка

Є що сказати? Потрібна допомога?

 [Перейти в форум підтримки](https://wordpress.org/support/plugin/wp-blade-engine/)