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
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

  • BlockMacros
  • CoreMacros
  • MacroSet
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases

Class MacroSet

Base IMacro implementation. Allows add multiple macros.

Latte\Macros\MacroSet implements Latte\IMacro uses Latte\Strict

Direct known subclasses

Latte\Macros\BlockMacros, Latte\Macros\CoreMacros, Nette\Bridges\ApplicationLatte\UIMacros, Nette\Bridges\FormsLatte\FormMacros
Namespace: Latte\Macros
Located at Latte/Macros/MacroSet.php
Methods summary
public
# __construct( Latte\Compiler $compiler )
public
# addMacro( $name, $begin, $end = null, $attr = null, $flags = null )
public
# initialize( )

Initializes before template parsing.

Initializes before template parsing.

Implementation of

Latte\IMacro::initialize()
public array|null
# finalize( )

Finishes template parsing.

Finishes template parsing.

Returns

array|null
[prolog, epilog]

Implementation of

Latte\IMacro::finalize()
public boolean|null
# nodeOpened( Latte\MacroNode $node )

New node is found.

New node is found.

Returns

boolean|null
bool|null

Implementation of

Latte\IMacro::nodeOpened()
public
# nodeClosed( Latte\MacroNode $node )

Node is closed.

Node is closed.

Implementation of

Latte\IMacro::nodeClosed()
public Latte\Compiler
# getCompiler( )

Returns

Latte\Compiler
Latte\Compiler
protected
# checkExtraArgs( Latte\MacroNode $node )

Internal

Methods used from Latte\Strict
__call(), __callStatic(), __get(), __isset(), __set(), __unset()
Constants inherited from Latte\IMacro
ALLOWED_IN_HEAD, AUTO_CLOSE, AUTO_EMPTY, DEFAULT_FLAGS
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0