Il y a beaucoup de fois où je me trouve écrit:Rails 3.1: Est-il possible d'écrire une fonction SASS pour déterminer les tailles d'image?
background-image:url(somesweetpicture.png);
background-repeat:no-repeat;
background-position:0 0;
width: 241px (width of sweet picture)
height: 49px (height of sweet pic)
Alors, bon candidat pour un mixin SASS:
@include image-background(somesweetpicture.png, w, h)
Est-il possible de récupérer les dimensions de l'image dans le mixin avec le code ruby ?