Exemple #1
0
 public CombiningCssLinkTagWriter(IContentFolderService folderService, IContentFileCombiner fileCombiner, CssLinkTagWriter singleFileWriter)
 {
     _folderService    = folderService;
     _fileCombiner     = fileCombiner;
     _singleFileWriter = singleFileWriter;
     _folderService.RegisterDirectory(FileSystem.Combine(FubuMvcPackageFacility.GetApplicationPath(), "content"));
 }
 public CombiningCssLinkTagWriter(IContentFolderService folderService, IContentFileCombiner fileCombiner, CssLinkTagWriter singleFileWriter)
 {
     _folderService = folderService;
     _fileCombiner = fileCombiner;
     _singleFileWriter = singleFileWriter;
     _folderService.RegisterDirectory(FileSystem.Combine(FubuMvcPackageFacility.GetApplicationPath(), "content"));
 }
Exemple #3
0
        public void Activate(IEnumerable <IPackageInfo> packages, IPackageLog log)
        {
            packages.Each(p => p.ForFolder(BottleFiles.WebContentFolder, topFolder =>
            {
                var contentFolder = FileSystem.Combine(topFolder, "content");

                log.Trace("Added folder '{0}' to the package folder list", contentFolder);
                _contents.RegisterDirectory(contentFolder);
            }));
        }