class BladeCompiler extends Compiler implements CompilerInterface (View source)
void | __construct(Filesystem $files, string $cachePath) Create a new compiler instance. | from Compiler |
string | getCompiledPath(string $path) Get the path to the compiled version of a view. | from Compiler |
bool | isExpired(string $path) Determine if the view at the given path is expired. | from Compiler |
void | compile(string $path = null) Compile the view at the given path. | |
string | getPath() Get the path currently being compiled. | |
void | setPath(string $path) Set the path currently being compiled. | |
string | compileString(string $value) Compile the given Blade template contents. | |
string | compileEchoDefaults(string $value) Compile the default values for the echo statement. | |
string | stripParentheses(string $expression) Strip the parentheses from the given expression. | |
array | getExtensions() Get the extensions used by the compiler. | |
void | extend(callable $compiler) Register a custom Blade compiler. | |
void | directive(string $name, callable $handler) Register a handler for custom directives. | |
array | getCustomDirectives() Get the list of custom directives. | |
array | getRawTags() Gets the raw tags used by the compiler. | |
void | setRawTags(string $openTag, string $closeTag) Sets the raw tags used for the compiler. | |
void | setContentTags(string $openTag, string $closeTag, bool $escaped = false) Sets the content tags used for the compiler. | |
void | setEscapedContentTags(string $openTag, string $closeTag) Sets the escaped content tags used for the compiler. | |
string | getContentTags() Gets the content tags used for the compiler. | |
string | getEscapedContentTags() Gets the escaped content tags used for the compiler. | |
void | setEchoFormat(string $format) Set the echo format to be used by the compiler. |
Create a new compiler instance.
Get the path to the compiled version of a view.
Determine if the view at the given path is expired.
Compile the view at the given path.
Get the path currently being compiled.
Set the path currently being compiled.
Compile the given Blade template contents.
Compile the default values for the echo statement.
Strip the parentheses from the given expression.
Get the extensions used by the compiler.
Register a custom Blade compiler.
Register a handler for custom directives.
Get the list of custom directives.
Gets the raw tags used by the compiler.
Sets the raw tags used for the compiler.
Sets the content tags used for the compiler.
Sets the escaped content tags used for the compiler.
Gets the content tags used for the compiler.
Gets the escaped content tags used for the compiler.
Set the echo format to be used by the compiler.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/View/Compilers/BladeCompiler.html