wellington / go-libsass

Go wrapper for libsass, the only Sass 3.5 compiler for Go
http://godoc.org/github.com/wellington/go-libsass
Apache License 2.0
206 stars 28 forks source link

Add an imports resolver func #64

Closed bep closed 6 years ago

bep commented 6 years ago

There are some potentials in improving the API in this areea; this PR focuses on making my use case work and not breaking people using the import slice.

Fixes #62

drewwells commented 6 years ago

changes look good, breaks backwards compat. I guess it's time for a new major release

drewwells commented 6 years ago

I'm going to change something in this implementation.

The resolver will move into imports struct replacing the hardcoded bytes. I believe that will cover your usecase. Importers are intended to be shared in a compiler, so having a single resolver will not give the compiler much flexibility.