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.