Compiles route path

@param string $path
11045
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;
        }

    }
326481
protected function setPath($path)
    {
        if ($path !== '' && !$this->isValidPath($path)) {
            throw new \InvalidArgumentException("Invalid path '$path'");
        }
        
        $this->path = (string)$path;
    }
254212
protected function makeUrl($path)
    {
        return URL::to(str_replace('{'.$this->config['html']['href'].'}', $path, $this->customUrl));
    }
1160430
private function parsePath($path)
    {
        if (empty($path)) {
            $path = Map::DEFAULT_URL_DELIMITER;
        }

        // get the clean path
        return $this->urlParser->parse($path);
    }
286790
public function addRoutesFile(string $path)
    {
        $datas = yaml_parse_file($path);

        $this->addRoutes($this->parseRoutesFiles($datas));
    }
186843
public function compileFileIntoElement($path)
    {
        $path = $this->resolve($path);

        return $this->compileIntoElement($this->getFileContents($path), $path);
    }
644839
protected function makePath($path)
    {
        return $this->context->directory ? $this->context->directory.'/'.$path : $path;
    }
838205
public function setCachePath($path) {
		$path = rtrim($path, DIRECTORY_SEPARATOR);
		$path = realpath($path);
		
		if ($path === false) {
			throw new NoPath('Invalid path: "' . func_get_arg(0) . '"');
		}
		
		if (! is_dir($path)) {
			throw new NoPath('Path must be a directory: "' . $path . '"');
		}
		
		if (! is_writeable($path)) {
			throw new NoPath('Path must be a writable: "' . $path . '"');
		}
		
		$this->path = $path;
	}
1143995
protected function relpathCE($path) {
		return (!$this->encoding)? $this->_relpath($path) : $this->convEncOut($this->_relpath($this->convEncIn($path)));
	}
1218668
protected function prefixBuildPath(string $path) : string {
        if ($buildPath = $this->app['config']->get('basset.build_path')) {
            $path = "{$buildPath}/{$path}";
        }

        return $path;
    }
1244802
public function compile($path)
    {
        $contents = $this->markdown->convertToHtml($this->files->get($path));

        $this->files->put($this->getCompiledPath($path), $contents);
    }
740917
protected function makePath($path)
    {
        $path = $this->fs->isAbsolutePath($path)
            ? $path
            : base_path($path);
        return Paths::fix($path);
    }
557256
public function setCompilerRoot($path)
  {
    $path = realpath($path);
    if (is_dir($path)) {
      $this->root = $path;
    }
  }
1330099
public function add_default_path(string $path)
    {
        $path = \trailingslashit($path);
        $this->paths[] = $path;
        $this->parse_files($path, false);
    }
546636
public function trimPath($path) {
        // Rewrite leading double slashes.
        $path = preg_replace("/^\/\//", "/", $path);

        // If there are more double slashes route is invalid.
        if (preg_match("/\/{2,}/", $path)) {
            throw new \Exception('Route path has invalid format ' . $path);
        }

        // Trim chars.
        return trim($path, " \t\n\r\0\x0B/");
    }
623474
protected function setSourcePath($path)
    {
        if ($this->sourcePath === self::DUMMY_PATH) {
            $this->sourcePath = $path;
        } elseif ($this->sourcePath === self::EMPTY_PATH) {
            $this->sourcePath = null;
        }
    }
1091253
public function getCompiledPath( $path )
	{
		$views = Framework::fw()->buildPath( "__views" );

		if ( starts_with($path, $views) )
			$path = substr( $path, strlen( $views ) + 1 );

		if ( !ends_with( $path, '.php' ) )
			$path .= '.php';

		// $path = substr( $path, 0, strrpos( $path, "." ) );

		$path = $this->cachePath . DIRECTORY_SEPARATOR . $path;

		@mkdir( dirname( $path ), 0755, true );

		return $path;

		// return $this->cachePath . '/' . str_replace( ["/", "\\"], "-", dirname( $path ) ) . '-' . basename( $path ) . '.php';

		// return $this->cachePath . '/' . sha1( $path ) . '.php';
	}