class Parser extends Object

Latte parser.

Constants

internal RE_STRING

internal N_PREFIX

internal CONTEXT_HTML_TEXT

internal CONTEXT_CDATA

internal CONTEXT_HTML_TAG

internal CONTEXT_HTML_ATTRIBUTE

internal CONTEXT_RAW

internal CONTEXT_HTML_COMMENT

Properties

string $defaultSyntax
bool $shortNoEscape
array $syntaxes

Methods

Token[]
parse($input)

Process all {macros} and .

setContentType($type)

No description

setContext($context, $quote = NULL)

No description

setSyntax($type)

Changes macro tag delimiters.

setDelimiters($left, $right)

Changes macro tag delimiters.

array
parseMacroTag($tag)

Parses macro tag to name, arguments a modifiers parts.

filter()

Process low-level macros.

Details

at line 80
Token[] parse($input)

Process all {macros} and .

Parameters

$input

Return Value

Token[]

at line 282
Parser setContentType($type)

No description

Parameters

$type

Return Value

Parser

at line 300
Parser setContext($context, $quote = NULL)

No description

Parameters

$context
$quote

Return Value

Parser

at line 312
Parser setSyntax($type)

Changes macro tag delimiters.

Parameters

$type

Return Value

Parser

at line 330
Parser setDelimiters($left, $right)

Changes macro tag delimiters.

Parameters

$left
$right

Return Value

Parser

at line 353
array parseMacroTag($tag)

internal  
 

Parses macro tag to name, arguments a modifiers parts.

Parameters

$tag

Return Value

array

at line 402
protected filter()

Process low-level macros.