This is a feature of compass... you can save yourself a lot of work by using it.
http://compass-style.org/docs/tutorials/configuration-reference/ <http://compass-style.org/docs/tutorials/configuration-reference/>Search for "asset_host" Chris On Thu, Oct 28, 2010 at 12:13 PM, Matt Beale <[email protected]>wrote: > Howdy all, > > I'm experimenting with the use of SASS at CSS compile time to add > asset hosts to CSS url() declarations. So far I've gotten to the > point of adding a 'def url' to lib/sass/script/functions.rb and though > I can raise exceptions and puts output, I cannot return an altered > string for the value. It's totally unclear to me why that is- It > looks like most function are altering input and returning new Sass- > type objects. > > Anyway, If somebody knows the SASS internals well, I think this would > be a really useful monkey-patch or feature. > > Hoping one of you sassxperts can lend me a hand. Best, > > -Matthew > > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected] <haml%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/haml?hl=en.
