Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Convert Haml templates to Erb!
Ruby
branch: master

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

Something went wrong with that request. Please try again.