1: <?php
2:
3: /**
4: * This file is part of the Nette Framework.
5: *
6: * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
7: *
8: * This source file is subject to the "Nette license", and/or
9: * GPL license. For more information please see http://nette.org
10: */
11:
12: namespace Nette\Latte;
13:
14: use Nette;
15:
16:
17:
18: /**
19: * HTML element node.
20: *
21: * @author David Grudl
22: */
23: class HtmlNode extends Nette\Object
24: {
25: /** @var string */
26: public $name;
27:
28: /** @var bool */
29: public $isEmpty = FALSE;
30:
31: /** @var array */
32: public $attrs = array();
33:
34: /** @var array */
35: public $macroAttrs = array();
36:
37: /** @var bool */
38: public $closing = FALSE;
39:
40: /** @var string */
41: public $attrCode;
42:
43: /** @var int */
44: public $offset;
45:
46:
47:
48: public function __construct($name)
49: {
50: $this->name = $name;
51: }
52:
53: }
54: