Property | Type | Description | |
---|---|---|---|
$compilers | array | All of the available compiler functions. Each one is called against every HTML block in the template. | |
$contentTags | array | Array of opening and closing tags for escaped echos. | |
$escapedTags | array | Array of opening and closing tags for escaped echos. | |
$extensions | array | All of the registered compiler extensions. | |
$footer | array | Array of footer lines to be added to template. | |
$forelseCounter | integer | Counter to keep track of nested forelse statements. | |
$isCacheable | boolean | Are the results of this engine cacheable? | |
$path | string | The file currently being compiled. |
Method | Description | |
---|---|---|
compile ( $path, array $forceParams = [] ) | ||
compileEchoDefaults ( string $value ) : string | Compile the default values for the echo statement. | |
compileString ( string $value ) : string | Compile the given Blade template contents. | |
createMatcher ( string $function ) : string | Get the regular expression for a generic Blade function. | |
createOpenMatcher ( string $function ) : string | Get the regular expression for a generic Blade function. | |
createPlainMatcher ( string $function ) : string | Create a plain Blade matcher. | |
extend ( callable $compiler ) : void | Register a custom Blade compiler. | |
getContentTags ( ) : string | Gets the content tags used for the compiler. | |
getEscapedContentTags ( ) : string | Gets the escaped content tags used for the compiler. | |
getPath ( ) : string | Get the path currently being compiled. | |
isCacheable ( ) : mixed | Are the results of this compiler engine cacheable? If the engine makes use of the forcedParams it must return false. | |
setContentTags ( string $openTag, string $closeTag, boolean $escaped = false ) : void | Sets the content tags used for the compiler. | |
setEscapedContentTags ( string $openTag, string $closeTag ) : void | Sets the escaped content tags used for the compiler. | |
setPath ( string $path ) : void | Set the path currently being compiled. |
Method | Description | |
---|---|---|
compileAppend ( string $expression ) : string | Compile the append statements into valid PHP. | |
compileComments ( string $value ) : string | Compile Blade comments into valid PHP. | |
compileCss ( string $expression ) : string | Compile the css statements into valid PHP. | |
compileEach ( string $expression ) : string | Compile the each statements into valid PHP. | |
compileEchos ( string $value ) : string | Compile Blade echos into valid PHP. | |
compileEditor ( string $expression ) : string | Compile the editor statements into valid PHP. | |
compileElse ( string $expression ) : string | Compile the else statements into valid PHP. | |
compileElseif ( string $expression ) : string | Compile the else-if statements into valid PHP. | |
compileEmpty ( string $expression ) : string | Compile the forelse statements into valid PHP. | |
compileEndRepeatable ( string $expression ) : string | Compile the end endRepeatable statements into valid PHP. | |
compileEndfor ( string $expression ) : string | Compile the end-for statements into valid PHP. | |
compileEndforeach ( string $expression ) : string | Compile the end-for-each statements into valid PHP. | |
compileEndforelse ( string $expression ) : string | Compile the end-for-else statements into valid PHP. | |
compileEndif ( string $expression ) : string | Compile the end-if statements into valid PHP. | |
compileEndpush ( string $expression ) : string | Compile the endpush statements into valid PHP. | |
compileEndsection ( string $expression ) : string | Compile the end-section statements into valid PHP. | |
compileEndunless ( string $expression ) : string | Compile the end unless statements into valid PHP. | |
compileEndwhile ( string $expression ) : string | Compile the end-while statements into valid PHP. | |
compileEscapedEchos ( string $value ) : string | Compile the escaped echo statements. | |
compileEscapedEchosCallback ( array $matches ) : string | Callback for compileEscapedEchos, since $this is not allowed in Closures under PHP 5.3. | |
compileExtends ( string $expression ) : string | Compile the extends statements into valid PHP. | |
compileExtensions ( string $value ) : string | Execute the user defined extensions. | |
compileFor ( string $expression ) : string | Compile the for statements into valid PHP. | |
compileForeach ( string $expression ) : string | Compile the foreach statements into valid PHP. | |
compileForelse ( string $expression ) : string | Compile the forelse statements into valid PHP. | |
compileIf ( string $expression ) : string | Compile the if statements into valid PHP. | |
compileInclude ( string $expression ) : string | Compile the include statements into valid PHP. | |
compileInlineCss ( string $expression ) : string | Compile the inlineCss statements into valid PHP. | |
compileInlineJs ( string $expression ) : string | Compile the inlineJs statements into valid PHP. | |
compileJhtml ( string $expression ) : string | Compile the jhtml statements into valid PHP. | |
compileJs ( string $expression ) : string | Compile the js statements into valid PHP. | |
compileLang ( string $expression ) : string | Compile the lang statements into valid PHP. | |
compileLess ( string $expression ) : string | Compile the less statements into valid PHP. | |
compileMedia ( string $expression ) : string | Compile the media statements into valid PHP. | |
compileModule ( string $expression ) : string | Compile the module statements into valid PHP. | |
compileModules ( string $expression ) : string | Compile the modules statements into valid PHP. | |
compileOverwrite ( string $expression ) : string | Compile the overwrite statements into valid PHP. | |
compilePush ( string $expression ) : string | Compile the push statements into valid PHP. | |
compileRegularEchos ( string $value ) : string | Compile the "regular" echo statements. | |
compileRegularEchosCallback ( array $matches ) : string | Callback for compileRegularEchos, since $this is not allowed in Closures under PHP 5.3. | |
compileRepeatable ( string $expression ) : string | Compile the end repeatable statements into valid PHP. | |
compileRoute ( string $expression ) : string | Compile the route statements into valid PHP. | |
compileSection ( string $expression ) : string | Compile the section statements into valid PHP. | |
compileShow ( string $expression ) : string | Compile the show statements into valid PHP. | |
compileSprintf ( string $expression ) : string | Compile the sprintf statements into valid PHP. | |
compileStack ( string $expression ) : string | Compile the stack statements into the content | |
compileStatements ( string $value ) : mixed | Compile Blade Statements that start with "@" | |
compileStatementsCallback ( $match ) : string | Callback for compileStatements, since $this is not allowed in Closures under PHP 5.3. | |
compileStop ( string $expression ) : string | Compile the stop statements into valid PHP. | |
compileToken ( string $expression ) : string | Compile the token statements into valid PHP. | |
compileUnless ( string $expression ) : string | Compile the unless statements into valid PHP. | |
compileWhile ( string $expression ) : string | Compile the while statements into valid PHP. | |
compileYield ( string $expression ) : string | Compile the yield statements into valid PHP. | |
compileYieldRepeatable ( string $expression ) : string | Compile the end yieldRepeatable statements into valid PHP. | |
getTags ( boolean $escaped = false ) : array | Gets the tags used for the compiler. | |
parseToken ( array $token ) : string | Parse the tokens from the template. |
protected compileAppend ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileComments ( string $value ) : string | ||
$value | string | |
return | string |
protected compileCss ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileEach ( string $expression ) : string | ||
$expression | string | |
return | string |
public compileEchoDefaults ( string $value ) : string | ||
$value | string | |
return | string |
protected compileEchos ( string $value ) : string | ||
$value | string | |
return | string |
protected compileEditor ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileElse ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileElseif ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileEmpty ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileEndRepeatable ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileEndfor ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileEndforeach ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileEndforelse ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileEndif ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileEndpush ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileEndsection ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileEndunless ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileEndwhile ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileEscapedEchos ( string $value ) : string | ||
$value | string | |
return | string |
protected compileEscapedEchosCallback ( array $matches ) : string | ||
$matches | array | |
return | string |
protected compileExtends ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileExtensions ( string $value ) : string | ||
$value | string | |
return | string |
protected compileFor ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileForeach ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileForelse ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileInclude ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileInlineCss ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileInlineJs ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileJhtml ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileLang ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileLess ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileMedia ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileModule ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileModules ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileOverwrite ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compilePush ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileRegularEchos ( string $value ) : string | ||
$value | string | |
return | string |
protected compileRegularEchosCallback ( array $matches ) : string | ||
$matches | array | |
return | string |
protected compileRepeatable ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileRoute ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileSection ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileShow ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileSprintf ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileStack ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileStatements ( string $value ) : mixed | ||
$value | string | |
return | mixed |
protected compileStatementsCallback ( $match ) : string | ||
$match | ||
return | string |
protected compileStop ( string $expression ) : string | ||
$expression | string | |
return | string |
public compileString ( string $value ) : string | ||
$value | string | |
return | string |
protected compileToken ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileUnless ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileWhile ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileYield ( string $expression ) : string | ||
$expression | string | |
return | string |
protected compileYieldRepeatable ( string $expression ) : string | ||
$expression | string | |
return | string |
public createMatcher ( string $function ) : string | ||
$function | string | |
return | string |
public createOpenMatcher ( string $function ) : string | ||
$function | string | |
return | string |
public createPlainMatcher ( string $function ) : string | ||
$function | string | |
return | string |
public getContentTags ( ) : string | ||
return | string |
public getEscapedContentTags ( ) : string | ||
return | string |
public isCacheable ( ) : mixed | ||
return | mixed |
protected parseToken ( array $token ) : string | ||
$token | array | |
return | string |
protected array $compilers | ||
return | array |
protected array $contentTags | ||
return | array |
protected array $escapedTags | ||
return | array |
protected array $extensions | ||
return | array |
protected int $forelseCounter | ||
return | integer |
protected bool $isCacheable | ||
return | boolean |