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;"); }
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); } }
CssObfuscator(StyleSheet css, Obfuscator ob) { this.css = css; this.ob = ob; }
public HtmlObfuscator(Obfuscator ob, ITagOutput output) { this.ob = ob; this.output = output; }