Beispiel #1
0
        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;
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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;
        }