Branch: Tag:

2018-04-09

2018-04-09 16:39:12 by Pontus Östlund <ponost@roxen.com>

Added default return value for handle_sass_import.

Added som fixme.

2018-03-26

2018-03-26 18:54:02 by Pontus Östlund <ponost@roxen.com>

Reinstated the import_path() getter.

Pike 8.1 complains if it isn't set.

2018-03-26 18:40:16 by Pontus Östlund <ponost@roxen.com>

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.

2018-03-26 07:13:26 by Pontus Östlund <ponost@roxen.com>

Check for size_shift in returned string from importer.

There's also som commented-out code for future refactoring.

2018-03-24

2018-03-24 12:07:25 by Pontus Östlund <ponost@roxen.com>

Removed an unnecessary code path.

Gave the sass importer a copy of the returned data since libsass will free it itself.

Some comment fixes.

2018-03-24 09:53:09 by Pontus Östlund <ponost@roxen.com>

Replaces a macro with a function and removed some strdup.

Also some doc comment fixes.

2018-03-23

2018-03-23 19:22:21 by Pontus Östlund <ponost@roxen.com>

__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.

2018-03-23 12:44:36 by Pontus Östlund <ponost@roxen.com>

Push current source file, absolute and relative paths, as arguments to the importer function.

2018-03-17

2018-03-17 21:24:13 by Pontus Östlund <ponost@roxen.com>

Generate source map also for compile_string().

2018-03-13

2018-03-13 21:33:15 by Pontus Östlund <ponost@roxen.com>

Removed the free_svalue since it was wrongfully used.

2018-03-08

2018-03-08 18:11:36 by Pontus Östlund <ponost@roxen.com>

Clean up stuff and use the `sass_copy_c_string()` function where applicable.

2018-03-07

2018-03-07 16:10:45 by Pontus Östlund <ponost@roxen.com>

Removed unnecessay type checks in set_options.

Pike handles this itself.

ifdef:ed the CMOD code so it will compile if libsass is missing.

2017-05-11

2017-05-11 16:06:20 by Pontus Östlund <ponost@roxen.com>

No need to hold a reference to the importer since it's handled internally by libsass.

2017-01-20

2017-01-20 15:31:00 by Pontus Östlund <ponost@roxen.com>

Formatting

2017-01-20 15:24:24 by Pontus Östlund <ponost@roxen.com>

Woot! This is the clean up of the importer object.

2016-12-05

2016-12-05 22:29:10 by Pontus Östlund <ponost@roxen.com>

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!

2016-12-04

2016-12-04 12:10:32 by Pontus Östlund <ponost@roxen.com>

Some stuff changed...

2016-12-04 01:50:57 by Pontus Östlund <ponost@roxen.com>

Broke out the PIKECLASS options to an "API" which is located in pike_sass.h.

2016-12-03

2016-12-03 13:20:23 by Pontus Östlund <ponost@roxen.com>

Handle error from the Pike layer in the C layer.

Added simple test for Sass syntax as well

2016-12-03 11:24:51 by Pontus Östlund <ponost@roxen.com>

Renamed Tools.Sass.SCSS to Tools.Sass.Compiler.
HTTP imports now also from compile_file().
Some doc additions.

2016-12-02

2016-12-02 23:47:49 by Pontus Östlund <ponost@roxen.com>

Importing external URIs works for compile_string() now. Prolly' some cleaning up to do, and then implement that for compile_file() as well.

2016-12-01

2016-12-01 22:17:28 by Pontus Östlund <ponost@roxen.com>

Removed the file writing from the CMOD and overloaded the compile_* methods in the PMOD instead.

Some test stuff fiddeling.

2016-12-01 15:17:20 by Pontus Östlund <ponost@roxen.com>

Autodoc fixes. The __Sass module is now virtually mapped to Tools.Sass.

2016-12-01 12:40:57 by Pontus Östlund <ponost@roxen.com>

Clean up the context before Pike_error is thrown.

2016-11-29

2016-11-29 22:15:28 by Pontus Östlund <ponost@roxen.com>

Moved _Sass to __Sass. Renamed _Api to Api. And some doc changes

2016-11-29 14:56:15 by Pontus Östlund <ponost@roxen.com>

Added some info methods about libsass version.

Improved configure.in to check for features in libsass.

2016-11-26

2016-11-26 17:07:37 by Pontus Östlund <ponost@roxen.com>

Come autodic fixes

2016-11-24

2016-11-24 15:38:58 by Pontus Östlund <ponost@roxen.com>

Implemented some more options

2016-11-23

2016-11-23 15:33:02 by Pontus Östlund <ponost@roxen.com>

Initial commit