예제 #1
0
        public IEnumerable <ScriptFile> AllEnumerable(Site site)
        {
            var fileNames = ScriptsWithParent(site);

            fileNames = FileOrderHelper.OrderFiles(GetOrderFile(site), fileNames);

            return(fileNames.Select(it => new ScriptFile(site, it).LastVersion()).ToArray());
        }
예제 #2
0
        public IEnumerable <StyleFile> AllStylesEnumerable(Site site, string themeName)
        {
            var theme = new Theme(site, themeName);

            var fileNames = EnumerateCssFilesWithPath(site, themeName);

            fileNames = FileOrderHelper.OrderFiles(GetOrderFile(site, themeName), fileNames);

            return(fileNames.Select(it => new StyleFile(theme, it).LastVersion()));
        }