Add dirname to Converter #22

Open
wants to merge 1 commit into
from

Projects

None yet

3 participants

@clee704
clee704 commented Mar 24, 2013

It is useful for the Sass converter, as it needs to know the path
to the asset file to process directives like @import. Currently
there is no way for a converter to know where the file come from.

Now the convert method can be as follows:

def convert
  return Sass::Engine.new(@content, load_paths: [@dirname], syntax: :scss).render
end
@clee704 clee704 Add dirname to Converter
It is useful for the Sass converter, as it needs to know the path
to the asset file to process directives like @import. Currently
there is no way for a converter to know where the file come from.

Now the convert method can be as follows:

    def convert
      return Sass::Engine.new(@content, load_paths: [@dirname], syntax: :scss).render
    end
de66ad2
@clee704
clee704 commented Mar 24, 2013

It addresses the issue #14.

@jpap
jpap commented Jun 11, 2013

I just hit this same problem. Would love to see this merged.

@kitsched
kitsched commented Mar 7, 2014

Integrated into my fork here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment