private IEnumerable <string> getPaths(string viewPath)
        {
            var defaultPaths = _defaultPartialProvider.GetPaths(viewPath);
            var origin       = viewPath.GetOrigin();
            var sharedPaths  = _directoryProvider.SharedViewPathsForOrigin(origin);

            return(defaultPaths.Union(sharedPaths));
        }
Exemple #2
0
        public FubuPartialProvider(SparkViewFacility facility)
        {
            var partialProvider = new DefaultPartialProvider();

            var sharedPaths = facility.SharedPaths();

            _partialPathCache = new Cache <string, IEnumerable <string> >(viewPath => sharedPaths.Union(partialProvider.GetPaths(viewPath)));
        }