Reputation: 5840
I know how to remove whitespace in HAML.
%img<
%img<
%img
But how do I get the same effect if I use ruby code?
= image_tag
= image_tag
Thanks.
Sam
Upvotes: 3
Views: 1061
Reputation: 71
In some cases (for example, text after image) can help interpolation:
#{image_tag 'image.png'}text
Upvotes: 1
Reputation: 9341
What not just do this?
= image_tag + image_tag
Not ideal, but you could also wrap in a span tag in order to use >
%span>= image_tag
%span>= image_tag
Upvotes: 5