Skip to content

bernabas/erb2haml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

erb2haml

erb2haml adds a simple rake task to your Rails app to converts all ERb HTML files in APP_HOME/app/views/ to Haml.

Existing Haml files are untouched.

Getting Started

  1. Add gem "erb2haml" to the development group in your Gemfile.

    Either add the line gem "erb2haml", :group => :development to your Gemfile, or
    group :development do ... gem "erb2haml" # Add this line ... end

  2. Run rake haml:convert_erbs to convert your ERB files without removing them, or run rake haml:replace_erbs to convert and replace your ERB files to your new HAML files.

  3. Watch your ERB files getting converted to haml.

And that's it!

Copyright

Copyright (c) 2011 David Leung. See LICENSE for further details.

About

Simple script to bulk covert ERB files in a Rails app to Haml

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%