On Sun, Jan 18, 2009 at 16:24, Chas <[email protected]> wrote: > > Is there a way to pass that rails generated html through HAML with the > intention of cleaning up the indentation and whitespace?
No. You would have to parse the HTML strings from these helpers and re-indent the tags with some HTML beautifier tool (probably some exists for HTML). But it doesn't pay off. You'd just be slowing down your app. It's much easier that you just re-implement error_messages_for in your application using the haml_tag helper. After you're done, you could share your implementation with the community. That could be a start of a plugin that re-implements all the complex HTML helpers of Rails with Haml helpers. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
