/** * Renders the parsed tree. */ public function render() { if (!$this->line_number) { $this->parse(); } $result = $this->root->render(); ob_start(); StringStream::add_string('result', $result); extract($this->variables); $__options = $this->options; $__render_attributes = function ($attributes) use($__options) { nodes\Tag::render_attributes_html($__options['format'], $__options['attr_wrapper'], $attributes); }; include 'StringStream://result'; StringStream::clear('result'); return rtrim(ob_get_clean()); }