Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationLatte
      • ApplicationTracy
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsLatte
      • Framework
      • HttpTracy
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Templating
    • Utils
  • NetteModule
  • none
  • Tracy

Classes

  • Compiler
  • Engine
  • HtmlNode
  • MacroNode
  • MacroTokens
  • Object
  • Parser
  • PhpWriter
  • Token

Interfaces

  • ILoader
  • IMacro

Exceptions

  • CompileException
  • RegexpException
  • RuntimeException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class Compiler

Latte compiler.

Latte\Object
Extended by Latte\Compiler
Namespace: Latte
Author: David Grudl
Located at Latte/Compiler.php
Methods summary
public
# __construct( )
public Latte\Compiler
# addMacro( string $name, Latte\IMacro $macro )

Adds new macro.

Adds new macro.

Parameters

$name
string
$macro

Returns

Latte\Compiler
public string
# compile( array $tokens )

Compiles tokens to PHP code.

Compiles tokens to PHP code.

Parameters

$tokens
Latte\Token[]

Returns

string
public Latte\Compiler
# setContentType( $type )

Returns

Latte\Compiler
public string
# getContentType( )

Returns

string
public Latte\Compiler
# setContext( $context, $sub = NULL )

Returns

Latte\Compiler
public array
# getContext( )

Returns

array
[context, subcontext]
public string
# getTemplateId( )

Returns

string
public Latte\MacroNode|null
# getMacroNode( )

Returns

Latte\MacroNode|null
public integer
# getLine( )

Returns current line number.

Returns current line number.

Returns

integer
Methods inherited from Latte\Object
__call(), __get(), __isset(), __set(), __unset()
Constants summary
string CONTENT_HTML Latte\Engine::CONTENT_HTML
#

Context-aware escaping content types

Context-aware escaping content types

string CONTENT_XHTML Latte\Engine::CONTENT_XHTML
#

Context-aware escaping content types

Context-aware escaping content types

string CONTENT_XML Latte\Engine::CONTENT_XML
#

Context-aware escaping content types

Context-aware escaping content types

string CONTENT_JS Latte\Engine::CONTENT_JS
#

Context-aware escaping content types

Context-aware escaping content types

string CONTENT_CSS Latte\Engine::CONTENT_CSS
#

Context-aware escaping content types

Context-aware escaping content types

string CONTENT_URL Latte\Engine::CONTENT_URL
#

Context-aware escaping content types

Context-aware escaping content types

string CONTENT_ICAL Latte\Engine::CONTENT_ICAL
#

Context-aware escaping content types

Context-aware escaping content types

string CONTENT_TEXT Latte\Engine::CONTENT_TEXT
#

Context-aware escaping content types

Context-aware escaping content types

string CONTEXT_COMMENT 'comment'
#
string CONTEXT_SINGLE_QUOTED_ATTR "'"
#
string CONTEXT_DOUBLE_QUOTED_ATTR '"'
#
string CONTEXT_UNQUOTED_ATTR '='
#
Nette 2.2 API documentation generated by ApiGen 2.8.0