What you want is the preserve helper. It works just like the find_and_preserve helper (for which ~ is a shortcut), but instead of specifically searching out certain tags, it just applies the preservation to all the text it's passed.
- Nathan On 3/27/07, Robin <[EMAIL PROTECTED]> wrote: > > > I have an hidden_field with an attribute that spans multiple lines. I > can't seem to find a way to get Haml to render this without indenting > the content. > > The ~ operator doesn't work because it seems to be restricted to code, > pre and text_area. Additionally, a quick look at the code indicates > that it is only interested in the code between tags, and not the > attributes themselves. > > In case you're wondering, the reason I'm doing this is for a > discussion forum. Before you post on the forum, you must preview, and > the body of your post is kept in a hidden field which you must submit > again. > > Any ideas? > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
