开发者

Manipulating CSS file programmatically

开发者 https://www.devze.com 2023-01-09 00:22 出处:网络
Is there any library available around to manipulate CSS files like the Hpricot for HTML/X开发者_开发技巧ML etc.

Is there any library available around to manipulate CSS files like the Hpricot for HTML/X开发者_开发技巧ML 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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消