1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
6: * @package Nette\Latte
7: */
8:
9:
10:
11: /**
12: * Latte macro.
13: *
14: * @author David Grudl
15: * @package Nette\Latte
16: */
17: interface IMacro
18: {
19:
20: /**
21: * Initializes before template parsing.
22: * @return void
23: */
24: function initialize();
25:
26: /**
27: * Finishes template parsing.
28: * @return array(prolog, epilog)
29: */
30: function finalize();
31:
32: /**
33: * New node is found. Returns FALSE to reject.
34: * @return bool
35: */
36: function nodeOpened(MacroNode $node);
37:
38: /**
39: * Node is closed.
40: * @return void
41: */
42: function nodeClosed(MacroNode $node);
43:
44: }
45: