The below Sass+Compass/Ruby can be used to:
- Generate retina and non-retina sprite maps
- Allow a single style class to provide retina and non-retina support, per image
- Automatically generate those sprite style classes
Example markup for a retina supported menu button:
%a.icon-hamburger