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 BlockMacros

Block macros.

Latte\Macros\MacroSet implements Latte\IMacro uses Latte\Strict
Extended by Latte\Macros\BlockMacros
Namespace: Latte\Macros
Located at Latte/Macros/BlockMacros.php
Methods summary
public static
# install( Latte\Compiler $compiler )
public
# initialize( )

Initializes before template parsing.

Initializes before template parsing.

Overrides

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

Finishes template parsing.

Finishes template parsing.

Returns

array|null
[prolog, epilog]

Overrides

Latte\Macros\MacroSet::finalize()
public
# macroInclude( Latte\MacroNode $node, Latte\PhpWriter $writer )

{include block}

{include block}

public
# macroIncludeBlock( Latte\MacroNode $node, Latte\PhpWriter $writer )

{includeblock "file"}

{includeblock "file"}

Deprecated

public
# macroImport( Latte\MacroNode $node, Latte\PhpWriter $writer )

{import "file"}

{import "file"}

public
# macroExtends( Latte\MacroNode $node, Latte\PhpWriter $writer )

{extends none | $var | "file"}

{extends none | $var | "file"}

public
# macroBlock( Latte\MacroNode $node, Latte\PhpWriter $writer )

{block [name]} {snippet [name [,]] [tag]} {snippetArea [name]} {define name}

{block [name]} {snippet [name [,]] [tag]} {snippetArea [name]} {define name}

public
# macroBlockEnd( Latte\MacroNode $node, Latte\PhpWriter $writer )

{/block} {/snippet} {/snippetArea} {/define}

{/block} {/snippet} {/snippetArea} {/define}

public
# macroIfset( Latte\MacroNode $node, Latte\PhpWriter $writer )

{ifset block} {elseifset block}

{ifset block} {elseifset block}

Methods inherited from Latte\Macros\MacroSet
__construct(), addMacro(), checkExtraArgs(), getCompiler(), nodeClosed(), nodeOpened()
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