Example #1
0
        public CSharpSaver(Options options, Obfuscator ob)
            : base(options.OutputCS)
        {
            this.options = options;
            this.ob = ob;

            IndentPrefix = "\t";
            NewLine = "\n";
            WriteLine("using SharpKit.JavaScript;");
            WriteLine("using SharpKit.Html;");
        }
Example #2
0
        public static void Obfuscate(string input, string output, Obfuscator ob)
        {
            var p = new ExCSS.Parser();
            var stylesheet = p.Parse(File.ReadAllText(input, Encoding.UTF8));
            var co = new CssObfuscator(stylesheet, ob);
            co.Obfuscate();

            if (output != null)
            {
                string css = stylesheet.ToString();
                File.WriteAllText(output, css, Encoding.UTF8);
            }
        }
Example #3
0
 CssObfuscator(StyleSheet css, Obfuscator ob)
 {
     this.css = css;
     this.ob = ob;
 }
Example #4
0
 public HtmlObfuscator(Obfuscator ob, ITagOutput output)
 {
     this.ob = ob;
     this.output = output;
 }