datatable.directory codebase
https://datatable.directory/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.0 KiB
24 lines
1.0 KiB
6 years ago
|
Index: vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php
|
||
|
IDEA additional info:
|
||
|
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||
|
<+>UTF-8
|
||
|
===================================================================
|
||
|
--- vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php (revision )
|
||
|
+++ vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php (revision )
|
||
|
@@ -119,6 +119,15 @@
|
||
|
if (! is_null($this->cachePath)) {
|
||
|
$contents = $this->compileString($this->files->get($this->getPath()));
|
||
|
|
||
|
+ if (env('DEBUG_BLADE')) {
|
||
|
+ $p = e(str_replace(resource_path('views'), '', $this->getPath()));
|
||
|
+ $p = trim($p, '/');
|
||
|
+ $p = str_replace('.blade.php', '', $p);
|
||
|
+ $p = str_replace('.php', '', $p);
|
||
|
+ $p = str_replace('/', '.', $p);
|
||
|
+ $contents = "\n<!-- BEGIN $p -->\n" . trim($contents) . "\n<!-- END $p -->\n";
|
||
|
+ }
|
||
|
+
|
||
|
$this->files->put($this->getCompiledPath($this->getPath()), $contents);
|
||
|
}
|
||
|
}
|