This patch should solve your problem. Just use:
open 'hr /'
instead of the symbol. Note: this does not interpolate the
attributes ... just thought it might get you going if you were stuck.
258c258,259
<
---
>
> name = name.to_s
268c269
< puts "</#{name}>"
---
> puts "</#{name}>" unless name[-1].chr == '/'
On Jul 8, 2007, at 12:05 PM, 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
-~----------~----~----~----~------~----~------~--~---