HamlRootNode.php in Sassy 7
File
phamlp/haml/tree/HamlRootNode.php
View source
<?php
require_once dirname(__FILE__) . '/../renderers/HamlRenderer.php';
class HamlRootNode extends HamlNode {
protected $renderer;
protected $options;
public function __construct($options) {
$this->root = $this;
$this->options = $options;
$this->renderer = HamlRenderer::getRenderer($this->options['style'], array(
'format' => $this->options['format'],
'attrWrapper' => $this->options['attrWrapper'],
'minimizedAttributes' => $this->options['minimizedAttributes'],
));
$this->token = array(
'level' => -1,
);
}
public function render() {
foreach ($this->children as $child) {
$this->output .= $child
->render();
}
return $this->output;
}
}
Classes
Name |
Description |
HamlRootNode |
HamlRootNode class.
Also the root node of a document.
@package PHamlP
@subpackage Haml.tree |