HAML-like syntax for non-HTML documents?

Posted by Peter on Stack Overflow See other posts from Stack Overflow or by Peter
Published on 2010-05-29T18:56:39Z Indexed on 2010/05/29 19:02 UTC
Read the original article Hit count: 255

Filed under:
|
|

I love using HAML for HTML documents. It has clean syntax that's much more attractive than ERB. It works perfectly for HTML documents.

What about for non-HTML? Such as, for example, an email or text document with certain automatically-substituted components? I've been falling back to ERB, but don't like the heavy syntax compared to HAML. Is there any way to use HAML for ordinary documents without having divs and html elements appear when % and . start a line?

Or is there some alternative to both HAML and ERB that I should investigate?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about haml