"~" is actually the same as the "find_and_preserve" helper which, as you 
noticed, preserves whitespace within whitespace-sensitive elements. As 
to your question in particular, it's really a matter of style. If you 
prefer conciseness, go with "~"; if you'd rather be more explicity, go 
with "find_and_preserve." Hampton and I both use "~", but it's really up 
to you.

- Nathan

Chase wrote:
> Ok, so the syntax page on this group answers one of my questions:
> preserve won't touch whitespace at all, while ~ will maintain
> whitespace only in whitespace-sensitive tags (textarea, pre, code).
>
> But then my other question still stands: if I have a textarea in a
> form, should I do "~ text_area" or "= preserve text_area"?
>
>
> On Jul 4, 7:28 pm, Chase <[EMAIL PROTECTED]> wrote:
>   
>> "~ blah" and "= preserve blah" seem to be identical. Is this true? If
>> so, should I use one over the other for the sake of being canonical?
>> If not, what are the differences?
>>     
>
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to