public function renderTags($allPosition = true): void
    {
        $output = ob_get_contents();
        $start = 0;
        preg_match_all('/(<!--|\/\*)#tag-position:([\w0-9_:-]+):[\w0-9]+#(-->|\*\/)/', $output, $matches, PREG_OFFSET_CAPTURE);
        ob_clean();

        $this->renderContents($output, $matches, $start);
        $this->validateRenderTags($allPosition);
        $this->resetRenderers();
        $this->resetTagPosition();
    }
public function renderTags($allPosition = true): void
    {
        $output = ob_get_contents();
        $start = 0;
        preg_match_all('/(<!--|\/\*)#tag-position:([\w0-9_:-]+):[\w0-9]+#(-->|\*\/)/', $output, $matches, PREG_OFFSET_CAPTURE);
        ob_clean();

        $this->renderContents($output, $matches, $start);
        $this->validateRenderTags($allPosition);
        $this->resetRenderers();
        $this->resetTagPosition();
    }
public function renderTags ( $ allPosition = true ) : void { $ output = ob_get_contents ( ) ; $ start = 0 ; preg_match_all ( '/(<!--|\/\*)#tag-position:([\w0-9_:-]+):[\w0-9]+#(-->|\*\/)/' , $ output , $ matches , PREG_OFFSET_CAPTURE ) ; ob_clean ( ) ; $ this -> renderContents ( $ output , $ matches , $ start ) ; $ this -> validateRenderTags ( $ allPosition ) ; $ this -> resetRenderers ( ) ; $ this -> resetTagPosition ( ) ; }
Render all template tags.

@param bool $allPosition Check if all asset position must be rendered.

Replaces the current buffer with the new edited buffer content

@throws MissingTagPositionException
@throws RequireTagException
@throws RuntimeTagRendererException
Render all template tags .