public function HashPath($path, $theme = true)
    {
        $filepath = $this->getPath($path, $theme);
        $path_parts = pathinfo($filepath);

        return sprintf(
            self::$format,
            str_replace(BASE_PATH . (self::$relativeLinks ? '/' : ''), '', $path_parts['dirname']),
            basename($path, ".{$path_parts['extension']}"),
            $this->HashFile($filepath, false),
            $path_parts['extension']
        );
    }