HAML-like syntax for non-HTML documents?
- by Peter
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?