public void Optimize( [Argument("site", "s", Description = "The root http address of the website copy.")] string site, [Argument("condense", Visible = false, DefaultValue = false, Description = "TODO: Rewrite the html collapsing whitespace.")] bool condense) { using (ContentOptimizier optimizier = new ContentOptimizier(StoragePath(site), site)) { //BROKEN: optimizier.CondenseHtml = condense; optimizier.OptimizeAll(); } }
public void OptimizePage( [Argument("page", "p", Description = "The full http address of the page you want to run optimizations on.")] string site, [Argument("condense", Visible = false, DefaultValue = false, Description = "TODO: Rewrite the html collapsing whitespace.")] bool condense) { Uri path = new Uri(site, UriKind.Absolute); using (ContentOptimizier optimizier = new ContentOptimizier(StoragePath(site), site)) { //BROKEN: optimizier.CondenseHtml = condense; optimizier.OptimizePage(path.NormalizedPathAndQuery()); } }