Convert Haml templates to Erb!
Ruby
Switch branches/tags
Clone or download
Latest commit 5eaaacf Nov 17, 2011

README.md

haml2erb

haml2erb is a tool for converting Haml to Erb markup.

Installing and loading haml2erb

haml2erb is currently distributed as a Rails plugin.

Simply move the main haml2erb directory into the vendor/plugins directory of your Rails application.

Using haml2erb

Use the haml2erb command line or from Ruby call the Haml2Erb.convert method to have Haml markup translated into Erb.

Example: Simple conversion

  echo '.foo' | haml2erb
  # <div class='foo'></div>
  Haml2Erb.convert('.foo')
  # => "<div class='foo'></div>\n"

License

MIT_LICENSE

Credits

For the original implementation:

Chris Goddard Louis Sivillo