You should certainly be able to render RHTML partials from Haml. I'll look into this.
- 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 -~----------~----~----~----~------~----~------~--~---
