is it possible to add html-content inside a link_to helper in HAML?
i tried this, but all i get is a syntax error:
= link_to "Other page", "path/to/page.html"
%span.icon Arrow
expected output:
<a href="path/to/page.html">Other Page<span class="icon">Arrow</span></a>
You should use block
= link_to "path/to/page.html" do
Other page
%span.icon Arrow