class BladeCompiler extends Compiler implements CompilerInterface (View source)

Methods

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.

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.

Details

in Compiler at line line 30
void __construct( Filesystem $files, string $cachePath)

Create a new compiler instance.

Parameters

Filesystem $files
string $cachePath

Return Value

void

in Compiler at line line 42
string getCompiledPath( string $path)

Get the path to the compiled version of a view.

Parameters

string $path

Return Value

string

in Compiler at line line 53
bool isExpired( string $path)

Determine if the view at the given path is expired.

Parameters

string $path

Return Value

bool

at line line 107
void compile( string $path = null)

Compile the view at the given path.

Parameters

string $path

Return Value

void

at line line 125
string getPath()

Get the path currently being compiled.

Return Value

string

at line line 136
void setPath( string $path)

Set the path currently being compiled.

Parameters

string $path

Return Value

void

at line line 147
string compileString( string $value)

Compile the given Blade template contents.

Parameters

string $value

Return Value

string

at line line 402
string compileEchoDefaults( string $value)

Compile the default values for the echo statement.

Parameters

string $value

Return Value

string

at line line 927
array getExtensions()

Get the extensions used by the compiler.

Return Value

array

at line line 938
void extend( callable $compiler)

Register a custom Blade compiler.

Parameters

callable $compiler

Return Value

void

at line line 950
void directive( string $name, callable $handler)

Register a handler for custom directives.

Parameters

string $name
callable $handler

Return Value

void

at line line 960
array getCustomDirectives()

Get the list of custom directives.

Return Value

array

at line line 970
array getRawTags()

Gets the raw tags used by the compiler.

Return Value

array

at line line 982
void setRawTags( string $openTag, string $closeTag)

Sets the raw tags used for the compiler.

Parameters

string $openTag
string $closeTag

Return Value

void

at line line 995
void setContentTags( string $openTag, string $closeTag, bool $escaped = false)

Sets the content tags used for the compiler.

Parameters

string $openTag
string $closeTag
bool $escaped

Return Value

void

at line line 1009
void setEscapedContentTags( string $openTag, string $closeTag)

Sets the escaped content tags used for the compiler.

Parameters

string $openTag
string $closeTag

Return Value

void

at line line 1019
string getContentTags()

Gets the content tags used for the compiler.

Return Value

string

at line line 1029
string getEscapedContentTags()

Gets the escaped content tags used for the compiler.

Return Value

string

at line line 1053
void setEchoFormat( string $format)

Set the echo format to be used by the compiler.

Parameters

string $format

Return Value

void