TemplateLexer
final class TemplateLexer
Constants
| StatePlain |
|
| StateLatteTag |
|
| StateLatteComment |
|
| StateHtmlText |
|
| StateHtmlTag |
|
| StateHtmlQuotedValue |
|
| StateHtmlQuotedNAttrValue |
|
| StateHtmlRawText |
|
| StateHtmlComment |
|
| StateHtmlBogus |
|
| ReTagName |
HTML tag name for Latte needs (actually is [a-zA-Z][^\s/>]*) |
| NPrefix |
special HTML attribute prefix |
| private ReAttrName |
HTML attribute name/value (\p{C} means \x00-\x1F except space) |
Methods
__construct()
No description
void
setState(string $state, ...$args)
No description
void
pushState(string $state, ...$args)
No description
void
popState()
No description
string
getState()
No description
setSyntax(string|null $type, string|null $endTag = null)
Changes tag delimiters.
void
popSyntax()
No description
Details
at line 51
__construct()
No description
at line 61
Generator
tokenize(string $template)
No description
at line 251
void
setState(string $state, ...$args)
No description
at line 257
void
pushState(string $state, ...$args)
No description
at line 264
void
popState()
No description
at line 270
string
getState()
No description
at line 279
TemplateLexer
setSyntax(string|null $type, string|null $endTag = null)
Changes tag delimiters.
at line 297
void
popSyntax()
No description