I just updated master so that haml_tag will only close elements that are listed in the :autoclose option.
treybean wrote: > I'm running the near latest haml 1.9 and just came across an oddity > with how the new haml_tag works. > > If I do: > > haml_tag :div, :class=>'clearfloat' > > it generates: > > <div class="clearfloat"/> > > a closed div tag instead of: > <div class="clearfloat"></div> > > Is this just to get people to stop putting crappy markup in their > html? It's something I'm trying to get away from, but the app I'm > working on has a bunch of that still going on. > > What's the thinking on this? I've figured out the temporary fix of > haml_tag :div, :class=>'clearfloat' do end > > but I'd be happier dropping the do end. > > Thanks, > Trey > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
