Added default return value for handle_sass_import.
Added som fixme.
Reinstated the import_path() getter.
Pike 8.1 complains if it isn't set.
Refactored how the import handler is defined and resolved.
Instead of assigning the callback to a variable we now do a symbol/identifier lookup for `handle_sass_import` in the current object.
This also got rid of the cyclic dependency wich rendered the wrapper class in the pmod obsolete.
We should probaly add some more checking so that the callback actually is callable and so forth.
Check for size_shift in returned string from importer.
There's also som commented-out code for future refactoring.
Removed an unnecessary code path.
Gave the sass importer a copy of the returned data since libsass will free it itself.
Some comment fixes.
Replaces a macro with a function and removed some strdup.
Also some doc comment fixes.
__resolve_import can now return an array of source and absolute path.
This is only useful if the Sass/SCSS files resides in a non-standard filesystem. If __resolve_import is overloaded you can resolve the absolute path of the imported file and return the source and absolute path for libsass to keep track of the import chain.
This is needed to resolve nested imports (imports in imported files) if libsass can't access the filesystem.
Push current source file, absolute and relative paths, as arguments to the importer function.
Generate source map also for compile_string().
Removed the free_svalue since it was wrongfully used.
Clean up stuff and use the `sass_copy_c_string()` function where applicable.
Removed unnecessay type checks in set_options.
Pike handles this itself.
ifdef:ed the CMOD code so it will compile if libsass is missing.
No need to hold a reference to the importer since it's handled internally by libsass.
Woot! This is the clean up of the importer object.
Okey, dumped all the getter/setter methods and the entire my_opts options struct.
Now the settings is handled by PIKEVARs instead. A lot simpler code and a lot simpler to use. Win*Win!
Some stuff changed...
Broke out the PIKECLASS options to an "API" which is located in pike_sass.h.
Handle error from the Pike layer in the C layer.
Added simple test for Sass syntax as well
Renamed Tools.Sass.SCSS to Tools.Sass.Compiler.
HTTP imports now also from compile_file().
Some doc additions.
Importing external URIs works for compile_string() now. Prolly' some cleaning up to do, and then implement that for compile_file() as well.
Removed the file writing from the CMOD and overloaded the compile_* methods in the PMOD instead.
Some test stuff fiddeling.
Autodoc fixes. The __Sass module is now virtually mapped to Tools.Sass.
Clean up the context before Pike_error is thrown.
Moved _Sass to __Sass. Renamed _Api to Api. And some doc changes
Added some info methods about libsass version.
Improved configure.in to check for features in libsass.
Come autodic fixes
Implemented some more options