Methods summary
public static
|
#
sharpen( )
Register the Blade view engine with Laravel.
Register the Blade view engine with Laravel.
|
public static
|
#
extend( Closure $compiler )
Register a custom Blade compiler.
Register a custom Blade compiler.
Blade::extend(function($view)
{
return str_replace('foo', 'bar', $view);
});
Parameters
|
public static
boolean
|
#
expired( string $view, string $path )
Determine if a view is "expired" and needs to be re-compiled.
Determine if a view is "expired" and needs to be re-compiled.
Parameters
- $view
string $view
- $path
string $path
Returns
boolean
|
public static
string
|
#
compile( string $view )
Compiles the specified file containing Blade pseudo-code into valid PHP.
Compiles the specified file containing Blade pseudo-code into valid PHP.
Parameters
Returns
string
|
public static
string
|
#
compile_string( string $value, Laravel\View $view = null )
Compiles the given string containing Blade pseudo-code into valid PHP.
Compiles the given string containing Blade pseudo-code into valid PHP.
Parameters
Returns
string
|
protected static
string
|
#
compile_layouts( string $value )
Rewrites Blade "@layout" expressions into valid PHP.
Rewrites Blade "@layout" expressions into valid PHP.
Parameters
Returns
string
|
protected static
string
|
#
compile_echos( string $value )
Rewrites Blade echo statements into PHP echo statements.
Rewrites Blade echo statements into PHP echo statements.
Parameters
Returns
string
|
protected static
string
|
#
compile_forelse( string $value )
Rewrites Blade "for else" statements into valid PHP.
Rewrites Blade "for else" statements into valid PHP.
Parameters
Returns
string
|
protected static
string
|
#
compile_empty( string $value )
Rewrites Blade "empty" statements into valid PHP.
Rewrites Blade "empty" statements into valid PHP.
Parameters
Returns
string
|
protected static
string
|
#
compile_endforelse( string $value )
Rewrites Blade "forelse" endings into valid PHP.
Rewrites Blade "forelse" endings into valid PHP.
Parameters
Returns
string
|
protected static
string
|
#
compile_structure_openings( string $value )
Rewrites Blade structure openings into PHP structure openings.
Rewrites Blade structure openings into PHP structure openings.
Parameters
Returns
string
|
protected static
string
|
#
compile_structure_closings( string $value )
Rewrites Blade structure closings into PHP structure closings.
Rewrites Blade structure closings into PHP structure closings.
Parameters
Returns
string
|
protected static
string
|
#
compile_else( string $value )
Rewrites Blade else statements into PHP else statements.
Rewrites Blade else statements into PHP else statements.
Parameters
Returns
string
|
protected static
string
|
#
compile_unless( string $value )
Rewrites Blade "unless" statements into valid PHP.
Rewrites Blade "unless" statements into valid PHP.
Parameters
Returns
string
|
protected static
string
|
#
compile_endunless( string $value )
Rewrites Blade "unless" endings into valid PHP.
Rewrites Blade "unless" endings into valid PHP.
Parameters
Returns
string
|
protected static
string
|
#
compile_includes( string $value )
Rewrites Blade @include statements into valid PHP.
Rewrites Blade @include statements into valid PHP.
Parameters
Returns
string
|
protected static
string
|
#
compile_render( string $value )
Rewrites Blade @render statements into valid PHP.
Rewrites Blade @render statements into valid PHP.
Parameters
Returns
string
|
protected static
string
|
#
compile_render_each( string $value )
Rewrites Blade @render_each statements into valid PHP.
Rewrites Blade @render_each statements into valid PHP.
Parameters
Returns
string
|
protected static
string
|
#
compile_yields( string $value )
Rewrites Blade @yield statements into Section statements.
Rewrites Blade @yield statements into Section statements.
The Blade @yield statement is a shortcut to the Section::yield method.
Parameters
Returns
string
|
protected static
string
|
#
compile_yield_sections( mixed $value )
Rewrites Blade yield section statements into valid PHP.
Rewrites Blade yield section statements into valid PHP.
Returns
string
|
protected static
string
|
#
compile_section_start( string $value )
Rewrites Blade @section statements into Section statements.
Rewrites Blade @section statements into Section statements.
The Blade @section statement is a shortcut to the Section::start method.
Parameters
Returns
string
|
protected static
string
|
#
compile_section_end( string $value )
Rewrites Blade @endsection statements into Section statements.
Rewrites Blade @endsection statements into Section statements.
The Blade @endsection statement is a shortcut to the Section::stop
method.
Parameters
Returns
string
|
protected static
string
|
#
compile_extensions( string $value )
Execute user defined compilers.
Execute user defined compilers.
Parameters
Returns
string
|
public static
string
|
#
matcher( string $function )
Get the regular expression for a generic Blade function.
Get the regular expression for a generic Blade function.
Parameters
- $function
string $function
Returns
string
|
public static
string
|
#
compiled( string $path )
Get the fully qualified path for a compiled view.
Get the fully qualified path for a compiled view.
Parameters
Returns
string
|
Properties summary
protected static
array
|
$compilers
|
array(
'extensions',
'layouts',
'comments',
'echos',
'forelse',
'empty',
'endforelse',
'structure_openings',
'structure_closings',
'else',
'unless',
'endunless',
'includes',
'render_each',
'render',
'yields',
'yield_sections',
'section_start',
'section_end',
) |
#
All of the compiler functions used by Blade.
All of the compiler functions used by Blade.
|
protected static
array
|
$extensions
|
array() |
#
An array of user defined compilers.
An array of user defined compilers.
|