sass / libsass-net

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

Sass to Scss #1

Closed AlexCuse closed 10 years ago

AlexCuse commented 10 years ago

For my project (SquishIt) we're looking to replace a Sass preprocessor using ironruby and a very old Sass implementation with your library.

If I am reading right, it looks like libsass now has the ability to convert the old-style Sass syntax into Scss before processing (see https://github.com/hcatlin/libsass/issues/16#issuecomment-42620205). However its' driven by the file extension - if processing content directly you need to do the conversion yourself prior to compilation. I'm hoping that the way this conversion is done can be called externally - if so, I think the best way to get it done for our purposes would probably be an "ISassToScssConverter" inside libsass-net that calls the native function. This would allow us to use the same functionality as libsass, saving us from implementing our own conversion and keeping it up to date.

If something like this would work for you let me know - I can try to figure out how to get it done and submit as a pull request. But if you wouldn't want to include it, let me know so we can implement our own conversion in .net. Just putting this out there ahead of time because I don't want to end up taking a dependency on an "unofficial" version of libsass-net.

Thanks for all you've done here - it seems to be working well for SCSS and the performance is a lot better than what we were getting with IronRuby.

darrenkopp commented 10 years ago

No, I think that functionality is definitely inline with this project since it's functionality in the libsass project and this project should just be a wrapper for that project. I'll look into all the details and see about adding those interfaces this weekend.

AlexCuse commented 10 years ago

Sounds great, let me know if there's anything I can help with

darrenkopp commented 10 years ago

You can use SassToScssConverter class to perform the conversion, nuget package has been updated.

AlexCuse commented 10 years ago

This is fantastic, thanks!