Haml sucks for content:
http://chriseppstein.github.com/blog/2010/02/08/haml-sucks-for-content/

But if you insist, my post there has some good hints on how. Also here's the
docs on how to manage whitespace:

http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html#whitespace_preservation

chris

On Thu, Mar 11, 2010 at 10:27 AM, Serenity <[email protected]> wrote:

> Since I already know that the standard response to this question is
> "why would you want to do that use erb", I will start out with the
> why:
>
> I have a complex haml template that already generates a marked up
> version of my output. It's actually a series of partials that call one
> another.
>
> I need a text version of the same output. The code is already in
> place, and already works. RIpping the markup out of the haml is easy.
> Rewriting the whole thing in ERB would be a pain.
>
> It seems sad that I would have to port a big chunk of code to ERB just
> because haml does not want to let me force an extra newline and some
> leading spaces in a couple of places.
>
> Not to metion, haml's self-closing blocks are nice. and, oh, by the
> way, they are a big part of the reason that porting to ERB would be a
> pain.
>
> So, with that said, is there a way to get haml to put out an extra
> newline and some extra leading spaces in certain places?
>
> Thanks,
> Avram
>
> --
> 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] <haml%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>
>

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