How about using the list in :autoclose to determine if it should autoclose or not?
On Jul 8, 2:39 pm, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote: > The reason that behavior's there is that some browsers > (*cough*KHTML*cough*) aren't able to understand some self-closed tags, > most notably "<div />". However, I think you're right that the default > behavior should be to self-close, "open :div, ''" could then create > "<div></div>". Implemented and committed, available in trunk. > > - Nathan > > wolfmanjm wrote: > > It is cleaner. > > > I was wondering shouldn't... > > > open :hr > > > generate > > > <hr/> > > > rather than > > > <hr> > > </hr> > > > or do I just do > > > puts "<hr/> > > > ?? > > > On Jul 8, 9:31 am, Hampton <[EMAIL PROTECTED]> wrote: > > >> The open stuff is pretty killer. Makes your helpers MUCH MUCH cleaner. > > >> I use them all the time now. > > >> -hampton. > > >> On 7/8/07, wolfmanjm <[EMAIL PROTECTED]> wrote: > > >>> thanks thats better ;) > > >>> On Jul 7, 8:20 pm, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote: > > >>>> Huh... it appears that the link was broken. Try this one instead: > > >>>http://haml.hamptoncatlin.com/docs/rdoc/classes/Haml/Helpers/ActionVi.... > > >>>> Note that that class doesn't have what you're looking for. I was > >>>> referring to the "open" helper, which is in Haml::Helpers > >>>> ( > > >>>http://haml.hamptoncatlin.com/docs/rdoc/classes/Haml/Helpers.html#M00...). > > >>>> Note that it /wasn't/ documented there until I uploaded the most recent > >>>> documentation just now, so if you looked there earlier and didn't find > >>>> anything that's why. > > >>>> - Nathan > > >>>> wolfmanjm wrote: > > >>>>> Hi, > > >>>>> Thanks for the new 1.7 > > >>>>> This new feature intrigued me... > > >>>>> Haml helpers to allow you to write elegantly formatted HTML in your > >>>>> helpers. > > >>>>> So I looked for docs on how to use it, but this link returned an error > > >>>>>http://haml.hamptoncatlin.com/docs/Haml/Helpers/ActionViewExtensions.. > > >>> .. > > >>>>> Are there any examples of how to use this feature? It sounds just like > >>>>> what I need. > > >>>>> Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
