Exemple #1
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)));
        }
 public FubuPartialProvider(ITemplateDirectoryProvider <ITemplate> directoryProvider)
 {
     _directoryProvider      = directoryProvider;
     _defaultPartialProvider = new DefaultPartialProvider();
     _partialPathCache       = new Cache <string, IEnumerable <string> >(getPaths);
 }