CompilerEngine
class CompilerEngine extends PhpEngine (View source)
Properties
protected CompilerInterface | $compiler | The Blade compiler instance. | |
protected array | $lastCompiled | A stack of the last compiled templates. |
Methods
string | get(string $path, array $data = []) Get the evaluated contents of the view. | |
string | evaluatePath(string $__path, array $__data) Get the evaluated contents of the view at the given path. | from PhpEngine |
void | handleViewException(Exception $e, int $obLevel) Handle a view exception. | |
void | __construct(CompilerInterface $compiler) Create a new Blade view engine instance. | |
string | getMessage(Exception $e) Get the exception message for an exception. | |
CompilerInterface | getCompiler() Get the compiler implementation. |
Details
string get(string $path, array $data = [])
Get the evaluated contents of the view.
protected string evaluatePath(string $__path, array $__data)
Get the evaluated contents of the view at the given path.
protected void handleViewException(Exception $e, int $obLevel)
Handle a view exception.
void __construct(CompilerInterface $compiler)
Create a new Blade view engine instance.
protected string getMessage(Exception $e)
Get the exception message for an exception.
CompilerInterface getCompiler()
Get the compiler implementation.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/View/Engines/CompilerEngine.html