Is there a gem to perform css editing and parsing in Ruby? What I need is to open css file, perform a find by a selector, alter it and save the output. The best way would look as following:
draft = CSSParser.load('structure.css')
draft.find('#header a').style('color', '#333')
draft.render
What’s the most appropriate way to do that?
I did some steps towards a solution of my problem. Currently the following code is able to alter CSS, although it lacks beautiful finder line
draft.find('#header a').style('color', '#333'):CSS:
Code: