On Thu, Mar 11, 2010 at 16:27, Serenity <[email protected]> wrote: > 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.
My suggestion is to *not* lose a lot of energy solving this through Haml. What you have here is a problem of stripping down HTML tags and generating a plain-text version of your web content. In your place, I would take the resulting HTML from your app (it doesn't matter how it was generated, ERB or Haml) and run it through a tool that understands HTML good enough that it can convert it to a nicely formatted text version. I wrote such a tool that converts HTML to Markdown. It's called Remark and it's on GitHub http://github.com/mislav/remark -- 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.
