Support for custom Sass functions

2
Voted

Allow end users to define custom Sass functions.

Perhaps allow a single file to be defined in the settings were custom functions can be defined or a dialog where we can edit custom functions that web workbench then knows were to look for them.

I currently have hacked web workbench to allow me to add my custom function but would rather see this ability become a supported feature. In my scenario I use Image Resizer to dynamically create gradients among other visual elements that I can then use in my css for older browsers that do not support CSS3 gradients. This program requires colors to be sent via the url and without the hash symbol. To achieve this I use the following function:

def colorToString(color)
    assert_type color, :Color
    Sass::Script::String.new(color.inspect[1..-1])
end
Status: New