Hi. In doing some iPhone web app development, I started using a lot of
Inline CSS Images via data urls in order to avoid the http requests on
lots of small icons.
http://en.wikipedia.org/wiki/Data:_URI_scheme

I've just been using DataURLMaker (http://www.sveinbjorn.org/
dataurlmaker) to generate the images, however was wondering if SASS
could provide some helpers to make this process a bit easier to
manage.

Maybe something like:

.icon
  background-image: url(#{data_image('/images/icon.png')})

Or maybe it would work better as a mixin

.icon
  +inline-background('/images/icon.png')

Would love any suggestions on how to get this implemented (I'm sure
Sass is currently extensible enough to allow it). Also, maybe it would
be a good future feature for the library itself to provide a built-in
way to generate data urls.

Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to