In my Rails template, I\'d like to accomplish final HTML to this effect using HAML:
I will first link somewhere
Although not well documented, this is cleanly achieved using HAML whitespace preservation (>) combined with an ASCII space (& #32;), and not with helpers:
%a{:href=>'/home'}> Home link
,
%a{:href=>'/page'} Next link
This will produce what you want:
Anchor text,
More text
But I agree, HAML needs to come up with a better way of doing this, as it does add unnecessary ASCII characters to the page (but it's still more efficient than using helpers).