public function end($name) { $out = ob_get_clean(); if (isset($this->blocks[$name])) { $this->blocks[$name][] = $out; } }