13

I am looking for something like this or this

what it does

rewrites classes and ids in CSS, HTML, and JavaScript files, doing something like .class to .a or #id to #a not sure the javascript obfu is great to use ( i prefer google closure to do this ) but the html and css is the question.

is there any alternative ?

6
  • 7
    Why don't you want to use that one?
    – icktoofay
    Sep 2, 2011 at 3:06
  • 9
    Probably because their logo is terribad.
    – wsanville
    Sep 2, 2011 at 3:13
  • @wsanville lol near right, but the truth is that im looking for an active development so i can hop in, i really want to see if there is any more active projects slimier then this. Sep 2, 2011 at 3:48
  • @AdamRamadhan did you have any luck finding an alternative?
    – Marco
    May 31, 2012 at 21:46
  • HTML Tidy is a good alternative tidy.sourceforge.net
    – Yoann
    Jul 23, 2012 at 10:06

2 Answers 2

9

Google's Closure Stylesheets can rename your class names. It work in conjunction with Closure Template for the HTML and Closure Compiler for the JavaScript.

Closure Stylesheets makes it possible to rename CSS class names in the generated stylesheet, which helps reduce the size of the CSS that is sent down to your users. Of course, this is not particularly useful unless the class names are renamed consistently in the HTML and JavaScript files that use the CSS. Fortunately, you can use the Closure Compiler to update the class names in your JavaScript and Closure Templates to update the class names in your HTML.

1
  • 3
    the problem about google closure is i dont know where to start using, im looking for something like example --html=myhtml.html --css=css.css --output /folder Oct 26, 2013 at 7:41
4

I saw html muncher mentioned in an answer to a similar question. I have not tried it, but it looks to be as simple to use as what you mentioned in your comment on Jerome's answer. It doesn't look to be actively maintained though.

[Update] I also found a similar node project, munch.js, that says it is based on html muncher.

Not the answer you're looking for? Browse other questions tagged or ask your own question.