Compiler
class Compiler extends Object
Latte compiler.
Constants
CONTENT_HTML |
Context-aware escaping content types |
CONTENT_XHTML |
Context-aware escaping content types |
CONTENT_XML |
Context-aware escaping content types |
CONTENT_JS |
Context-aware escaping content types |
CONTENT_CSS |
Context-aware escaping content types |
CONTENT_URL |
Context-aware escaping content types |
CONTENT_ICAL |
Context-aware escaping content types |
CONTENT_TEXT |
Context-aware escaping content types |
internal CONTEXT_COMMENT |
|
internal CONTEXT_SINGLE_QUOTED_ATTR |
|
internal CONTEXT_DOUBLE_QUOTED_ATTR |
|
internal CONTEXT_UNQUOTED_ATTR |
|
Methods
No description
Compiles tokens to PHP code.
No description
No description
No description
No description
No description
No description
Returns current line number.
No description
Generates code for {macro ...} to the output.
Generates code for {/macro ...} to the output.
Generates code for macro
Expands macro and returns node & code.
Details
at line 69
__construct()
No description
at line 93
string
compile(array $tokens, $className)
Compiles tokens to PHP code.
at line 143
Compiler
setContentType($type)
No description
at line 154
string
getContentType()
No description
at line 163
Compiler
setContext($context, $sub = NULL)
No description
at line 173
array
getContext()
No description
at line 182
string
getTemplateId()
No description
at line 191
MacroNode|null
getMacroNode()
No description
at line 201
int
getLine()
Returns current line number.
at line 208
expandTokens($s)
internal |
No description
at line 402
MacroNode
openMacro($name, $args = NULL, $modifiers = NULL, $isRightmost = FALSE, $nPrefix = NULL)
internal |
Generates code for {macro ...} to the output.
at line 425
MacroNode
closeMacro($name, $args = NULL, $modifiers = NULL, $isRightmost = FALSE, $nPrefix = NULL)
internal |
Generates code for {/macro ...} to the output.
at line 483
void
writeAttrsMacro($code)
internal |
Generates code for macro
at line 563
MacroNode
expandMacro($name, $args, $modifiers = NULL, $nPrefix = NULL)
internal |
Expands macro and returns node & code.