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 68
__construct()
No description
at line 92
string
compile(array $tokens)
Compiles tokens to PHP code.
at line 136
Compiler
setContentType($type)
No description
at line 147
string
getContentType()
No description
at line 156
Compiler
setContext($context, $sub = NULL)
No description
at line 166
array
getContext()
No description
at line 175
string
getTemplateId()
No description
at line 184
MacroNode|null
getMacroNode()
No description
at line 194
int
getLine()
Returns current line number.
at line 201
expandTokens($s)
internal |
No description
at line 377
MacroNode
openMacro($name, $args = NULL, $modifiers = NULL, $isRightmost = FALSE, $nPrefix = NULL)
internal |
Generates code for {macro ...} to the output.
at line 400
MacroNode
closeMacro($name, $args = NULL, $modifiers = NULL, $isRightmost = FALSE, $nPrefix = NULL)
internal |
Generates code for {/macro ...} to the output.
at line 458
void
writeAttrsMacro($code)
internal |
Generates code for macro
at line 538
MacroNode
expandMacro($name, $args, $modifiers = NULL, $nPrefix = NULL)
internal |
Expands macro and returns node & code.