Skip to content

This ruby gem uses the html2haml command line utility to convert rails’ ERB view files to HAML.

License

Notifications You must be signed in to change notification settings

Pjero/hamlize_views

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hamlize_views

This ruby gem uses the html2haml command line utility to convert rails’ ERB view files to HAML.

Installation


  gem sources -a http://gems.github.com
  sudo gem install haml
  sudo gem install zeke-hamlize_views

Usage


  $ cd /path/to/rails_app/
  $ hamlize_views # Displays usage
  $ hamlize_views app/views/my_model # Creates HAMLized versions of all app/views/my_model/*.html.erb files

Todo

  • Account for non-HTML Rails scaffold view stuff like > and "
  • Provide a flag for deletion of the original .erb files
  • Add an option to update references to converted files in rspec view tests

Copyright

Copyright © 2009 Zeke Sikelianos. See LICENSE for details.

About

This ruby gem uses the html2haml command line utility to convert rails’ ERB view files to HAML.

Resources

License

Stars

Watchers

Forks

Packages

No packages published