sass / libsass-net

A lightweight wrapper around libsass
MIT License
94 stars 35 forks source link

Why should implement huge Interface to use LibSass? #62

Closed dehghani-mehdi closed 6 years ago

dehghani-mehdi commented 6 years ago

Hi,

In provided wiki, usage is really simple, the code snippet is as follow:

var sassCompiler = new SassCompiler();
var result =  sassCompiler.Compile("body { color:blue; }");

But in real world usage, we should implement ISassOptions interface in order to use this tool. is there any to avoid that?

libsass

Thanks!

darrenkopp commented 6 years ago

You don't need to, you just need to instantiate an object that implements that already. It probably shouldn't be in the .Options namespace as that shouldn't be a namespace (likely just because VS defaults) and it isn't discoverable that way.

Anyway, the solution is to just create that object and pass it, with whatever options you need.