-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for SASS_PATH #90
Comments
I'm not 100% sure this is something that should be in libsass. Seems more like SassC or a wrapper's job. We try and keep as much OS-specific stuff out of libsass as we can. |
Are there docs on what is required of wrappers using libsass in order to create a compliant implementation? |
Is this not what the sassc -I (import) option does, or am I missing something? Usage: ../sassc [OPTION]... [FILE] Options: Or was this option added in response to this issue and therefore this issue should now be closed? |
Yes, of course, but environment variables aren't the same thing as arguments. Some programs take command-line arguments, some take config files, some take API arguments but none of those things are visible to libsass without being passed explicitly. The environment is to available to all linked libraries and sub-processes automatically. In a way, |
Got it. Failed to realise we were talking about environment variables. |
Yeah, this is something that the host wrapper should deal with. We want to work with environments without environment variables. Many host applications would certainly not want their embedded library referencing env variables with it being aware of it. |
Every process running on your system right now is referencing env variables. For example, libc uses |
libsass is loosely modeled on libraries like libxml, which (afaik) don't use environment variables to change their behaviour. This is a very, very, very easy feature to add to sassc which would be the appropriate place to handle interactions with the operating system. What adaptor are you using? |
Agree, this should be supported by the libsass frontends. We should have a |
So what was the final outcome of this? I feel it is should be native to using sass sheets however that is achieved |
@xtianus79 as stated above this does not belong in LibSass, but in the adaptors. For instance it has recently been added to node-sass. |
If you are using Ruby and either Ruby Sass or SassC with SassC-Rails, we have found this little gem useful and everything just works no matter which pre-processor we use. |
WHOOPS! Link here: https://github.com/customink/sass_paths |
Just making a note of this Sass 3.2 feature, not currently supported by libsass:
The text was updated successfully, but these errors were encountered: