2

Is there any library available around to manipulate CSS files like the Hpricot for HTML/XML etc.

I have a lot of CSS files for different theme, and sometime for a minor change I need to open each CSS file and make that change.

I want to do it programmatically, preferably in Ruby.

Thanks, Imran

1
  • By manipulating I mean, I can select a class and change its styles. Add, delete new classes etc. Commented Jul 28, 2010 at 13:21

1 Answer 1

1

Have you taken a look at less or Sass? They probably aren't quite what you're looking for--but they are both languages that compile to CSS and use cleaner syntax and other benefits like variables.

Sign up to request clarification or add additional context in comments.

1 Comment

They look great. But I am still looking for some library for this, as I have a lot of existing css files to deal with.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.