If you don't mind having whitespace in between the elements,
%a{:href=>"example.com"} %img{:src=>"/image.png"} Linktext => <a href='example.com'> <img src='/image.png'> Linktext </a> If you need to remove the whitespaces, then %a{:href=>"example.com"}< %img{:src=>"/image.png"}> Linktext => <a href='example.com'><img src='/image.png'>Linktext</a> -- Sean On Sun Apr 28 21:11:36 2013, Jean Luc-Besson wrote:
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+unsubscr...@googlegroups.com. To post to this group, send email to haml@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.
-- 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+unsubscr...@googlegroups.com. To post to this group, send email to haml@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.