Пример #1
0
 public void ParseCss(string file)
 {
     using (StreamReader reader = new StreamReader(file))
     {
         var css = reader.ReadToEnd();
         AttributeCleaner cleaner   = new AttributeCleaner();
         OutputGenerator  generator = new OutputGenerator();
         generator.GenerateCss(cleaner.CleanStyleTag(css));
     }
 }
Пример #2
0
 public void GenerateOutput(TreeRoot root)
 {
     if (root == null)
     {
         Logger.WriteLine("Plik nie został załadowany");
     }
     else
     {
         OutputGenerator generator = new OutputGenerator();
         generator.Generate(root);
     }
 }