%a{:href=>"example.com"}If you need to remove the whitespaces, then
%img{:src=>"/image.png"}
Linktext
=>
<a href='example.com'>
<img src='/image.png'>
Linktext
</a>
%a{:href=>"example.com"}<--
%img{:src=>"/image.png"}>
Linktext
=>
<a href='example.com'><img src='/image.png'>Linktext</a>
Hi everyone,
I need to convert this to HAML:
<a href="example.com"><img src="/image.png">Linktext</a>
I know how to create text links and image links,...but I fail
miserably combining them.
Any help is appreciated.
JBL
--
You received this message because you are subscribed to the Google
Groups "Haml" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to haml+uns...@googlegroups.com.
To post to this group, send email to ha...@googlegroups.com.
Visit this group at http://groups.google.com/group/haml?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.