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()); }
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())); }