diff --git a/src/Blade.php b/src/Blade.php index 46ff51b..8ed913f 100644 --- a/src/Blade.php +++ b/src/Blade.php @@ -1,4 +1,5 @@ container->bindIf('config', function () { return [ - 'view.paths' => (array) $this->viewPaths, + 'view.paths' => (array) $this->viewPaths, 'view.compiled' => $this->cachePath, ]; }, true); @@ -102,5 +102,4 @@ public function __call($method, $params) { return call_user_func_array([$this->container['view'], $method], $params); } - } diff --git a/tests/BladeTest.php b/tests/BladeTest.php index 65b298f..6dbb2dc 100644 --- a/tests/BladeTest.php +++ b/tests/BladeTest.php @@ -61,7 +61,7 @@ public function testExtenderBlade() /** * Html Writer on sample_output folder * - * @param string $output The HTML output + * @param string $output The HTML output * @param string $blade_name The blade file name/path * * @return void diff --git a/tests/sample_output/extender.html b/tests/sample_output/extender.html index 9790cb9..45f581e 100644 --- a/tests/sample_output/extender.html +++ b/tests/sample_output/extender.html @@ -9,19 +9,26 @@ Default
Still Default
+ <script type="text/javascript">alert("Hacked!");</script>
+ Hello, John Doe.
+ hello <strong>John Doe</strong>
+ + 01/01/2017 23:59:59
+ January 01, 2017 11:59 pm
+ You are not signed in.
diff --git a/tests/views/extender.blade.php b/tests/views/extender.blade.php index 0ecad42..9921b8d 100644 --- a/tests/views/extender.blade.php +++ b/tests/views/extender.blade.php @@ -5,7 +5,6 @@ @endsection @section('content') - {{-- you must get 'Default' --}} {{ isset($name) ? $name : 'Default' }}
{{ $name or 'Still Default' }}