Title: Blade Engine
Author: Lars Jansen
Published: <strong>2017 年 8 月 6 日</strong>
Last modified: 2017 年 8 月 6 日

---

搜尋外掛

![](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://tw.wordpress.org/plugins/wp-blade-engine/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/wp-blade-engine/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/wp-blade-engine/#installation)
 * [開發資訊](https://tw.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/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/wp-blade-engine/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/wp-blade-engine/)。

## 變更記錄

#### 1.0.0

 * Initial version

## 中繼資料

 *  版本 **1.0.1**
 *  最後更新 **9 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 4.8 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.8.28**
 *  語言
 * [English (US)](https://wordpress.org/plugins/wp-blade-engine/)
 * 標籤:
 * [Blade](https://tw.wordpress.org/plugins/tags/blade/)[engine](https://tw.wordpress.org/plugins/tags/engine/)
   [Laravel](https://tw.wordpress.org/plugins/tags/laravel/)[render](https://tw.wordpress.org/plugins/tags/render/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wp-blade-engine/advanced/)

## 評分

這個項目尚無任何評論記錄。

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

[查看全部使用者評論](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/)