Nathan
What a long trip it's been hunting this down! Under 1.5.2 it seems to
be a minor formatting issue--accidentally tabbing in the "- end"
wreaks havoc:
- [1,2].each do |n|
%div{:id => "div#{n}"}
%ul
%li "hi"
- end
generates a hanging div:
<div id='div1'>
<ul>
<li>"hi"</li>
</ul>
<div id='div2'>
<ul>
<li>"hi"</li>
</ul>
</div>
the tabbing for "-" directives is not arbitrary, but is it wrong
above?
as far as 1.6 goes, I really couldn't get it working with
render :partial but I'll try again with a simple case and post a
followup. Is 1.6 considered alpha?
Brad
On Jun 29, 2:43 am, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
> Yes, that would be very helpful indeed :).
>
> - Nathan
>
> bmidgley wrote:
> > Nathan
>
> > Thanks for the reply.
>
> > Ok... I changed the # to %div when I tried it in 1.6. I also just
> > changed to use render :partial.
>
> > What I am looking at here in the resulting html source is on iterating
> > over three records, the first div is not closed, the second one is
> > closed by /ul and the third is properly closed.
>
> > Would it be helpful for me to boil it down to the simplest case that
> > demonstrates a problem?
>
> > Brad
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---