This is actually something I added a while ago, but I guess I forgot to
write a sneak peek for it. Sass now supports functions, with the typical
foo(bar) syntax. Right now there's only one - hsl(), which transforms an
HSL color spec into an RGB color object - but the idea is that there
will eventually be many. Ideas are appreciated.
At the moment, the functions take and return the Sass-script wrapper
Number, String, Color, and so forth objects. This may continue into the
future as well; I don't know. The API is reasonably straightforward,
though, if a little verbose, so if you want to work on your own
functions just add them to Sass::Constant::Functions, and by all means
submit them back as patches.
Enjoy!
- Nathan