This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
How do I get a substring of a particular string variable in Sass? For instance if I have:
and I want to output everything after the pound symbol how would I do that? I only see two string functions in the sass docs for qoute and unquote. If this isn't possible this leads to the second question: How do I add a custom sass function that provides this capability? I read that you can add custom functions to SassScriptFunctions.php but I searched my hard drive and its nowhere to be found. |
|
|
Hi Strandedpirate, Questions about Sass, Less and CoffeeScript themselves are best directed to the Sass, Less and CoffeeScript community sites. We can only really help out with issues that relate to Web Workbench and integration into Visual Studio. Looking at it though I don't think Sass has a function that does what you want. The Sass folks will be able to advise you on adding custom functions to Sass (I think you will need to use Ruby rather than PHP though). However Web Workbench does not currently support custom Sass functions; you will need to use the command-line compiler for that. |
|