コード例 #1
0
ファイル: Theme.cs プロジェクト: tehkyle/dotless.NamedThemes
        private Ruleset GetCachedRulesetFromFile(string themeBaseFile)
        {
            var themeFileContent = File.ReadAllText(themeBaseFile);

            var parser = new dotless.Core.Parser.Parser();

            return(parser.Parse(themeFileContent, themeBaseFile));
        }
コード例 #2
0
ファイル: Theme.cs プロジェクト: tehkyle/dotless.NamedThemes
        private Ruleset GetCachedRulesetFromUri(Uri themeUri)
        {
            string themeContent;

            using (WebClient client = new WebClient())
                themeContent = client.DownloadString(themeUri);

            var parser = new dotless.Core.Parser.Parser();

            return(parser.Parse(themeContent, themeUri.ToString()));
        }