이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

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/.

설치

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

FAQ

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

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Blade Engine”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Blade Engine”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.0.0

  • Initial version