Maybe I'm missing something but I think the way you updated the haml_tag helper doesn't include support for a regex in the :autoclose array. This is actually causing me a problem because I am using haml in a slightly quirky way - to generate an XML web service which exactly matches a legacy web service.. The legacy web service uses autoclose by default on all empty tags. Also the haml_tag helper compares text and block to nil when perhaps it should be comparing to empty?
On Saturday, April 12, 2008 3:12:39 AM UTC+10, Nathan Weizenbaum wrote: > > 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 view this discussion on the web visit https://groups.google.com/d/msg/haml/-/VtIu3OAmtFwJ. 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.
