mikaelmattsson / blade

Blade for Wordpress
GNU General Public License v2.0
151 stars 21 forks source link

@layout and @endsection ??? #3

Closed byordereurope closed 10 years ago

byordereurope commented 10 years ago

Well not sure, but as far as i know blade uses @extends('nameoflayout') and @stop instead of @endsection, is that available or is this an out-dated plugin ?

PabloVallejo commented 10 years ago

Hi @byordereurope, Yes, what happens is that this plugins still uses the templating engine of Laravel 3.2.* https://github.com/laravel/laravel/blob/v3.2.14/laravel/blade.php which is no longer the same on Laravel 4 https://github.com/laravel/framework/blob/v4.0.10/src/Illuminate/View/Compilers/BladeCompiler.php. We hope to upgrade it to the latest version very soon.

kampit commented 10 years ago

+1 for L4

mikaelmattsson commented 10 years ago

Don't forget that “Blade” is a syntax just as much as it is an engine. We are using the same syntax as Laravel's Blade. And blade in turn was inspired by Razor (get it? Razor...Blade). The engine should not matter. We can write our own engine and it would still be a Blade engine. We are reusing code from L3 because it was easier to implement than the L4 Blade Engine. If there is anything that you you miss from the L4 Blade Engine then feel free to implement it. So to answer your question, ”is that available or is this an out-dated plugin”, neither. This is the WP version of the Blade Engine and it doesn't feel outdated. Using the L3 way of layouts works fine for my needs. I personally don't feel any need to keep up with the development of the Original Blade Engine. You are free to add functionality if you would like to.