protected function extractDirectives($directive, $content)
    {
        $pattern = '/{{'.$directive.'\(?([\w\.]*)\)?}}/';
        preg_match_all($pattern, $content, $result);

        return $result;
    }