Thanks for the fast solution! Andi
On Apr 6, 4:45 am, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote: > This has been fixed in trunk. The is_haml? helper was returning true > inside an RHTML partial rendered from Haml, when it should have returned > false - this caused other helpers to misbehave. I'll fix this in stable, > too, shortly. > > - Nathan > > ridcully wrote: > > Hi, > > > I noticed a strange behaviour with rendering rhtml partials inside a > > haml template: > > > index.haml: > > ------------------------ > > %div > > = render :partial => "partial_rhtml" > > %div > > = render :partial => "partial_haml" > > > partial_haml.haml: > > ------------------------ > > - form_tag do > > foo > > > partial_rhtml.rhtml: > > ------------------------ > > <% form_tag do %> > > foo > > <% end %> > > > renders to: > > ------------------------ > > <div> > > <form action="/test" method="post"> > > </form> > > > foo > > </div> > > <div> > > <form action="/test" method="post"> > > foo > > </form> > > </div> > > > As you can see, in the rhtml partial the content of the form tag is > > outside of the form. The haml partial renders correctly. How can this > > be? Am I not supposed to render rhtml templates inside a haml > > template? > > > Thanks > > Andi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
