How can I do something like this in HAML (within Rails app such that it matters)?
<li><a href="#" title="Meet the Team"><strong>Team <em>16 members</em></strong></a></li>
Edit: how also to do it with link_to
and a route of pages_team
?
The basic method would look like this ...
%li
%a{ :href => "#", :title => "Meet the Team" }
%strong
Team
%em 16 members
Or using the new hash syntax ...
%li
%a{ href: "#", title: "Meet the Team" }
%strong
Team
%em 16 members