I don't know of anyone who's done this before, but it shouldn't be too hard;
the Sass parse tree API is pretty straightforward, and there are plenty of
tree-diffing algorithms floating around.

On Wed, Aug 25, 2010 at 7:21 AM, DEfusion <[email protected]> wrote:

> I'm currently trying to automatically convert a whole load of
> stylesheets to SASS, which is going fine.
>
> However the stylesheets are for website templates, each template can
> have multiple colour variations, in the legacy code each variation has
> its own (pretty short) stylesheet, with just one or two properties
> changed.
>
> It would be nice to be able to clean these up automatically and
> wondered if anyone had any ideas. I've started looking into the
> parsing side of SASS and am trying to go through the tree and maybe
> make up a new SASS document containing just the changes. Does this
> sound feasible, has anyone tried this before?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected] <haml%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to