Skip to content

Dragon whisperer

Pre-release
Pre-release
Compare
Choose a tag to compare
@mgreter mgreter released this 16 Oct 21:48
· 165 commits to master since this release

Libsass 3.0 has been released: https://github.com/sass/libsass/releases/tag/3.0
I changed a lot internally in regard to custom functions since the last release candidate.

I tried to map sass_value types as closely to perl data structures as possible. This works very well for maps, which correspond directly to hash-refs. All lists are represented by array-refs, but there are two different type of lists in libssas, namely comma and space separated ones. I treat all plain array refs as comma separated. To get a space separated list, you need to instantiate/inherit from CSS::Sass::Type::List::Space.

The new implementation is backed by 269 unit tests!

This should make it much more intuitive to implement complex custom functions!
Updated a lot of documentation to (hopefully) cover all aspects of the new features!

https://github.com/sass/perl-libsass/blob/master/lib/CSS/Sass.md
https://github.com/sass/perl-libsass/blob/master/lib/CSS/Sass/Type.md