Skip to content

Add support for :load_paths #65

@amirabiri

Description

@amirabiri

We are porting a large web system from Ruby to .NET. We make extensive use of compass mixins. Can you add support for this please?

I dug around the code a bit, and was able to 'hack' this by modifying in SassCompiler the line:

_scssOption = _engine.Execute("{:cache => false, :syntax => :scss}");

to

_scssOption = engine.Execute(@"{:cache => false, :syntax => :scss, :load_paths => [""C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/compass-0.12.2/frameworks/compass/stylesheets""]}");

Of course the actual solution should not hardcode the path. I wasn't able to build the whole solution, so can't offer a pull request. Plus I'm not sure how you'd want to handle the actual compass mixins? Should they be distributed with the Nuget package? Or downloaded separately and pointed to using a configuration value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions