No release in over 3 years
Low commit activity in last 3 years
This ruby gem uses the html2haml command line utility to convert ERB view files to HAML.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

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.