Project

erb2haml

0.1
Repository is archived
No release in over 3 years
Low commit activity in last 3 years
There's a lot of open issues
erb2haml gives Rails simple rake tasks to convert all ERB view templates to Haml.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

erb2haml

erb2haml gives your Rails app rake tasks to convert or replace all ERB view templates to Haml.

Getting Started

Enabling the rake tasks

Add gem "erb2haml" to the development group in your Gemfile. You can do this by adding to your Gemfile the line

gem "erb2haml", :group => :development

or if you prefer the block syntax

group :development do 
  # ... 
  gem "erb2haml"            # Add this line 
  # ... 
end

Converting ERB Templates to Haml

After enabling the rake tasks, you can convert your ERB templates to Haml in two ways, depending on whether you would like to keep the original ERB templates or not.

Keep the original ERBs? Rake task to run
Yes rake haml:convert_erbs
No rake haml:replace_erbs

License

Copyright (c) 2011-2013 David Leung and contributors. See LICENSE for further details.