Reintegrating Blade with Laravel using View engine event.

This commit is contained in:
Taylor Otwell
2012-03-22 11:48:07 -05:00
parent b6615ddbee
commit 35e53b8cef
7 changed files with 213 additions and 3 deletions

View File

@@ -119,6 +119,7 @@ return array(
'Auth' => 'Laravel\\Auth',
'Asset' => 'Laravel\\Asset',
'Autoloader' => 'Laravel\\Autoloader',
'Blade' => 'Laravel\\Blade',
'Bundle' => 'Laravel\\Bundle',
'Cache' => 'Laravel\\Cache',
'Config' => 'Laravel\\Config',

View File

@@ -112,6 +112,19 @@ Event::listen(Lang::loader, function($bundle, $language, $file)
return Lang::file($bundle, $language, $file);
});
/*
|--------------------------------------------------------------------------
| Enable The Blade View Engine
|--------------------------------------------------------------------------
|
| The Blade view engine provides a clean, beautiful templating language
| for your application, including syntax for echoing data and all of
| the typical PHP control structures. We'll simply enable it here.
|
*/
Blade::sharpen();
/*
|--------------------------------------------------------------------------
| Set The Default Timezone