public function compilePath($path)
    {
        if(preg_match_all('/\{(\w+)\}/', $path, $matches, PREG_SET_ORDER) == false)
        {
            return $path;
        }
        else
        {
            foreach($matches as $match)
            {
                $this->params[] = $match[1];
            }

            $static = preg_replace('/\{(\w+)\}/i', "", $path);
            $static = rtrim($static, '/');

            $path = '/' . str_replace('/', '\/', $path) . '/';
            $regex = preg_replace('/\{(\w+)\}/', '(\w+)', $path);

            $this->static_path = $static;
            $this->regex = $regex;
        }

    }