final |
---|
Methods | ||
---|---|---|
public
|
__construct()
|
# |
public
|
parse(string $template): TemplateNode
|
# |
public
|
parseFragment(callable $resolver, ?callable $after = null): FragmentNode
|
# |
public
|
inTextResolve(): ?Node
|
# |
public
|
parseText(): TextNode
|
# |
public
|
parseLatteComment(): NopNode
|
# |
public
|
parseLatteStatement(?callable $resolver = null): ?Node
|
# |
public
|
addTags(array<string, stdClass|(callable(Tag, self): (Node|Generator|void))> $parsers): static
|
# |
public
|
ensureIsConsumed(Tag $tag): void
|
# |
public
|
checkBlockIsUnique(Block $block): void
|
# |
public
|
setPolicy(?Policy $policy): static
|
# |
public
|
setContentType(string $type): static
|
# |
public
|
getContentType(): string
|
# |
public
|
getLexer(): TemplateLexer
|
# |
public
|
peekTag(): ?Tag
|
# |
public
|
pushTag(Tag $tag): Tag
|
# |
public
|
popTag(): void
|
# |
public
|
generateId(): int
|
# |
public
|
isTagAllowed(string $name): bool
|
# |
Properties | |||
---|---|---|---|
public
|
Block[][]
|
$blocks = [[]]
|
# |
public
|
int
|
$blockLayer = Template::LayerTop
|
# |
public
|
bool
|
$inHead = true
|
# |
public
|
bool
|
$strict = false
|
# |
public
|
?TextNode
|
$lastIndentation = null
|
# |