In my Rails template, I'd like to accomplish final HTML to this effect using HAML: I will first <a href="http://example.com">link somewhere</a>, then render this half of the sentence if a condition is met The template that comes close: I will first = link_to 'link somewhere', 'http://example.com' - if @condition , then render this half of the sentence if a condition is met You may, however, note t
![Haml: Control whitespace around text](https://cdn-ak-scissors.b.st-hatena.com/image/square/98d6f053a97a87156775f60757c60865d0f2c47d/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fstackoverflow%2FImg%2Fapple-touch-icon%402.png%3Fv%3D73d79a89bded)