Skip to content
forked from elia/haml2erb

Convert Haml templates to Erb!

License

Notifications You must be signed in to change notification settings

etlund/haml2erb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Convert Haml templates to Erb!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%