From 31786c96e903743fb0bd293dfda3cf7f6d6e6143 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 23 Mar 2012 17:05:44 -0500 Subject: [PATCH] Cleaning up the Blade class. --- laravel/blade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/laravel/blade.php b/laravel/blade.php index 349234c8..e0381a68 100644 --- a/laravel/blade.php +++ b/laravel/blade.php @@ -108,7 +108,7 @@ class Blade { { // If the Blade template is not using "layouts", we'll just return it // it unchanged since there is nothing to do with layouts and we'll - // just let the other Blade compilers handle it. + // just let the other Blade compilers handle the rest. if ( ! starts_with($value, '@layout')) { return $value; @@ -121,11 +121,11 @@ class Blade { $layout = static::extract($lines[0], '@layout'); + $lines[] = ""; + // We will add a "render" statement to the end of the templates and // and then slice off the @layout shortcut from the start so the // sections register before the parent template renders. - $lines[] = ""; - return implode(CRLF, array_slice($lines, 1)); }