public IEnumerable<ITemplate> FindInHost() { var templates = new List<ITemplate>(); var root = new SparkRoot { Origin = FubuSparkConstants.HostOrigin, Path = HostPath }; var request = buildRequest(templates, root); _hostExcludes.Do(request); _fileScanner.Scan(request); return templates; }
public IEnumerable <ITemplate> FindInHost() { var templates = new List <ITemplate>(); var root = new SparkRoot { Origin = FubuSparkConstants.HostOrigin, Path = HostPath }; var request = buildRequest(templates, root); _hostExcludes.Do(request); _fileScanner.Scan(request); return(templates); }
private static IEnumerable <SparkRoot> packageRoots(IEnumerable <IPackageInfo> packages) { var packageRoots = new List <SparkRoot>(); foreach (var package in packages) { var pack = package; package.ForFolder(BottleFiles.WebContentFolder, path => { var root = new SparkRoot { Origin = pack.Name, Path = path }; packageRoots.Add(root); }); } return(packageRoots); }
private static IEnumerable<SparkRoot> packageRoots(IEnumerable<IPackageInfo> packages) { var packageRoots = new List<SparkRoot>(); foreach (var package in packages) { var pack = package; package.ForFolder(BottleFiles.WebContentFolder, path => { var root = new SparkRoot { Origin = pack.Name, Path = path }; packageRoots.Add(root); }); } return packageRoots; }