ok trying this, but cant get it to work :
%pre
:preserve
__ ______ __ ______
.----.| |--.|__ |.----.| |--..--------.| __ |
| __|| ||__ || __|| < | || __ |
|____||__|__||______||____||__|__||__|__|__||______|
first problem is the intial . (which i guess u can escape \)
second problem is the final | characters - how can we escape these ?
struggling to get the expected output
cheers
weepy
On Feb 10, 5:30 pm, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
> Yes, there is. If you're using trunk, wrap the render call with a
> "find_and_preserve" helper. Otherwise, use a "~" character (which is
> deprecated in trunk... hence the different method) instead of "=". That
> will convert all newlines within whitespace-sensitive tags like <pre> to
> HTML newline characters, which will not only make the layout's
> indentation consistent, but will cause Haml not to auto-indent it.
>
> - Nathan
>
> weepy wrote:
> > I'm doing the following :
>
> > %h1#logo
> > = render :partial => "layouts/logo"
>
> > where logo.rhtml is
>
> > <pre>
> > my ascii art
> > </pre>
>
> > which produces :
>
> > <h1 id='logo'>
> > <pre>
> > my ascii art
> > </pre>
> > </h1>
>
> > the obvious problem is the pre tag is indented creating an unwanted
> > large left-margin of whitespace
>
> > any way round this ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---