EdgeCompiler
class EdgeCompiler implements EdgeCompilerInterface (View source)
The EdgeCompiler class.
This is a modified version of Laravel Blade engine.
Methods
compile
Compile the default values for the echo statement.
Register a handler for custom directives.
Get the list of custom directives.
Method to set property directives
parser
Method to set property parsers
getParsers
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.
Details
at line line 118
string
compile(string $value)
compile
at line line 422
string
compileEchoDefaults(string $value)
Compile the default values for the echo statement.
at line line 886
EdgeCompilerInterface
directive(string $name, callable $handler)
Register a handler for custom directives.
at line line 898
array
getDirectives()
Get the list of custom directives.
at line line 910
EdgeCompiler
setDirectives(array $directives)
Method to set property directives
at line line 924
EdgeCompilerInterface
parser(callable $handler)
parser
at line line 938
EdgeCompiler
setParsers(callable[] $parsers)
Method to set property parsers
at line line 950
callable[]
getParsers()
getParsers
at line line 960
array
getRawTags()
Gets the raw tags used by the compiler.
at line line 973
void
setRawTags(string $openTag, string $closeTag)
Sets the raw tags used for the compiler.
at line line 987
void
setContentTags(string $openTag, string $closeTag, bool $escaped = false)
Sets the content tags used for the compiler.
at line line 1002
void
setEscapedContentTags(string $openTag, string $closeTag)
Sets the escaped content tags used for the compiler.
at line line 1012
string
getContentTags()
Gets the content tags used for the compiler.
at line line 1022
string
getEscapedContentTags()
Gets the escaped content tags used for the compiler.
at line line 1048
void
setEchoFormat(string $format)
Set the echo format to be used by the compiler.