src/Renderer/Twig.php
public function render($template, $variables)
    {
        $this->rendered = $this->twig->render($template, $variables);

        // add generator meta
        if (!preg_match('/<meta name="generator".*/i', $this->rendered)) {
            $meta = '<meta name="generator" content="PHPoole" />';
            $this->rendered = preg_replace('/(<head>|<head[[:space:]]+.*>)/i', '$1'."\n\t".$meta, $this->rendered);
        }

        // replace excerpt tag by HTML anchor
        $pattern = '/(.*)(<!-- excerpt -->)(.*)/i';
        $replacement = '$1<span id="more"></span>$3';
        $this->rendered = preg_replace($pattern, $replacement, $this->rendered);

        return $this->rendered;
    }
public function render($template, $variables)
    {
        $this->rendered = $this->twig->render($template, $variables);

        // add generator meta
        if (!preg_match('/<meta name="generator".*/i', $this->rendered)) {
            $meta = '<meta name="generator" content="PHPoole" />';
            $this->rendered = preg_replace('/(<head>|<head[[:space:]]+.*>)/i', '$1'."\n\t".$meta, $this->rendered);
        }

        // replace excerpt tag by HTML anchor
        $pattern = '/(.*)(<!-- excerpt -->)(.*)/i';
        $replacement = '$1<span id="more"></span>$3';
        $this->rendered = preg_replace($pattern, $replacement, $this->rendered);

        return $this->rendered;
    }
{@inheritdoc}