Retina.js functionality in coffeescript
- install Coffeescript
- clone the repo down and
cd
into it - copy included Coffeescript near the end of a
.coffee
file that occurs on all pages - be sure to have a @2x version of each image tag or replace
$('img')
with$('.some-class')
- profit!