public function compile($content)
    {
        if( ! $this->count()) return $content;

        $pattern = $this->getRegex();

        return preg_replace_callback("/{$pattern}/s", [&$this, 'render'], $content);
    }
public function compile($content)
    {
        if( ! $this->count()) return $content;

        $pattern = $this->getRegex();

        return preg_replace_callback("/{$pattern}/s", [&$this, 'render'], $content);
    }
public function compile ( $ content ) { if ( ! $ this -> count ( ) ) return $ content ; $ pattern = $ this -> getRegex ( ) ; return preg_replace_callback ( "/{$pattern}/s" , [ & $ this , 'render' ] , $ content ) ; }
Compile the gived content.

@param  string $content

@return mixed|string
Compile the gived content .