sass / sassc-ruby

Use libsass with Ruby!
MIT License
367 stars 156 forks source link

API for reading Sass values? #210

Open Aupajo opened 3 years ago

Aupajo commented 3 years ago

Hi 👋 I'm wondering if there's an API that lets me read the compiled values of variables.

Something like:

raw_sass = '$hello: "World";'
Sassc::SOMETHING.parse(raw_sass).variables # => { "$hello" => #<SassString @value="World"> }

Does such an API exist?