public static void ConfigureLoaders(IPackageFacility x, FubuDocsDirectories directories)
        {
            // dirty, dirty hack
            if (directories.Host.IsNotEmpty())
            {
                FubuMvcPackageFacility.PhysicalRootPath = directories.Host.TrimEnd('/').TrimEnd('\\').ToFullPath();
            }

            x.Loader(new DocumentPackageLoader(directories.Solution));

            if (directories.Host.IsNotEmpty())
            {
                Console.WriteLine("Loading hosting application at " + directories.Host);
                x.Loader(new ApplicationRootPackageLoader(directories.Host));

                TopicLoader.ApplicationBottle = Path.GetFileName(directories.Host);
            }
            else
            {
                x.Loader(new CurrentDirectoryLoader(directories));
            }

            x.Loader(new FubuDocsPackageLoader());
        }
 public static void Loader <T>(this IPackageFacility configuration) where T : IPackageLoader, new()
 {
     configuration.Loader(new T());
 }