Here's how I'd do it:
= @photos.map { |photo| image_tag photo.public_filename, :size =>
photo.image_size }.join
Joe Beda wrote:
> Hi all,
>
> I'm liking Haml a lot. However, there are places in HTML where
> whitespace is very significant and I'm having trouble making haml work
> there. Here is a concrete example:
>
> - for photo in @photos
> = image_tag photo.public_filename, :size => photo.image_size
>
> This ends up putting each image tag on its own line. What I really
> want is to somehow have them right next to each other with no spaces.
> I know of no other way using HTML or CSS to get the same affect.
>
> Any ideas?
>
> Thanks!
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---