Haml aタグまとめ

stackoverflow.com

33down voteaccepted

Outside any kind of framework:

%img(src="/images/loading.gif")

The older, more verbose but flexible syntax:

%img{:src => "/images/loading.gif"}

If you’re using Rails, it will generate the tag itself:

=image_tag "loading.gif"