Commit 70d47461 authored by Taylor Otwell's avatar Taylor Otwell

cleaning up.

parent a6977813
...@@ -73,17 +73,19 @@ class Blade { ...@@ -73,17 +73,19 @@ class Blade {
} }
/** /**
* Register a new blade compiler. * Register a custom Blade compiler.
* *
* <code> * <code>
* Blade::extend(function($view) { * Blade::extend(function($view)
* return str_replace('thing', 'another_thing', $view); * {
* return str_replace('foo', 'bar', $view);
* }); * });
* </code> * </code>
* *
* @param closure $compiler * @param Closure $compiler
* @return void
*/ */
public static function extend($compiler) public static function extend(Closure $compiler)
{ {
static::$extensions[] = $compiler; static::$extensions[] = $compiler;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment