/** * Index Buffered output * * @param $index * * @return $this */ public function indexBuffer($index) { if ($this->buffering) { $index = Sanitize::underscore($index); $data = ob_get_clean(); $this->buffer[$index] = $data; $this->buffering = false; } return $this; }