Namespaces

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

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
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
$macro

Returns

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

Compiles tokens to PHP code.

Compiles tokens to PHP code.

Parameters

$tokens
$className

Returns

string
string
public Latte\Compiler
# setContentType( $type )

Returns

Latte\Compiler
static
public string
# getContentType( )

Returns

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

Returns

Latte\Compiler
static
public array
# getContext( )

Returns

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

Returns

string
string
public Latte\MacroNode|null
# getMacroNode( )

Returns

Latte\MacroNode|null
MacroNode|NULL
public integer
# getLine( )

Returns current line number.

Returns current line number.

Returns

integer
int
Methods inherited from Latte\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset()
Constants summary
string CONTENT_HTML

Context-aware escaping content types

Context-aware escaping content types

#Latte\Engine::CONTENT_HTML
string CONTENT_XHTML

Context-aware escaping content types

Context-aware escaping content types

#Latte\Engine::CONTENT_XHTML
string CONTENT_XML

Context-aware escaping content types

Context-aware escaping content types

#Latte\Engine::CONTENT_XML
string CONTENT_JS

Context-aware escaping content types

Context-aware escaping content types

#Latte\Engine::CONTENT_JS
string CONTENT_CSS

Context-aware escaping content types

Context-aware escaping content types

#Latte\Engine::CONTENT_CSS
string CONTENT_URL

Context-aware escaping content types

Context-aware escaping content types

#Latte\Engine::CONTENT_URL
string CONTENT_ICAL

Context-aware escaping content types

Context-aware escaping content types

#Latte\Engine::CONTENT_ICAL
string CONTENT_TEXT

Context-aware escaping content types

Context-aware escaping content types

#Latte\Engine::CONTENT_TEXT
string CONTEXT_COMMENT
#'comment'
string CONTEXT_SINGLE_QUOTED_ATTR
#"'"
string CONTEXT_DOUBLE_QUOTED_ATTR
#'"'
string CONTEXT_UNQUOTED_ATTR
#'='
Nette 2.3-20161221 API API documentation generated by ApiGen 2.8.0