HandlebarsHelper.HandlebarsTransformer.GetRelativePath C# (CSharp) Method

GetRelativePath() private method

private GetRelativePath ( System.Web.HttpServerUtilityBase server, BundleFile bundleFile, string filePath ) : string
server System.Web.HttpServerUtilityBase
bundleFile BundleFile
filePath string
return string
        private string GetRelativePath(HttpServerUtilityBase server, BundleFile bundleFile, string filePath)
        {
            var relativeBundlePath = bundleFile.IncludedVirtualPath.Remove(bundleFile.IncludedVirtualPath.IndexOf(@"\"));
            var bundlePath = server.MapPath(relativeBundlePath);
            return FileToolkit.PathDifference(filePath, bundlePath);
        }