Namespaces

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • None
  • PHP

Classes

  • Compiler
  • Engine
  • HtmlNode
  • MacroNode
  • MacroTokenizer
  • Parser
  • PhpWriter
  • Token

Interfaces

  • IMacro

Exceptions

  • CompileException
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the Nette Framework (http://nette.org)
 5:  *
 6:  * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
 7:  *
 8:  * For the full copyright and license information, please view
 9:  * the file license.txt that was distributed with this source code.
10:  */
11: 
12: namespace Nette\Latte;
13: 
14: use Nette;
15: 
16: 
17: 
18: /**
19:  * Latte macro.
20:  *
21:  * @author     David Grudl
22:  */
23: interface IMacro
24: {
25: 
26:     /**
27:      * Initializes before template parsing.
28:      * @return void
29:      */
30:     function initialize();
31: 
32:     /**
33:      * Finishes template parsing.
34:      * @return array(prolog, epilog)
35:      */
36:     function finalize();
37: 
38:     /**
39:      * New node is found. Returns FALSE to reject.
40:      * @return bool
41:      */
42:     function nodeOpened(MacroNode $node);
43: 
44:     /**
45:      * Node is closed.
46:      * @return void
47:      */
48:     function nodeClosed(MacroNode $node);
49: 
50: }
51: 
Nette Framework 2.0.6 API API documentation generated by ApiGen 2.7.0