erb2haml-win
erb2haml-win adds a simple rake task to your Rails app to converts all ERb HTML files in APP_HOME/app/views/
to Haml.
Windows Only!
Forked from https://github.com/dhl/erb2haml
Gem site: https://rubygems.org/gems/erb2haml-win
Change Log
0.1.4
- Add: More Tasks (toJsErb, delJsErb, toDelJsErb, toDelAllErb) (See command list for usage) (and I still use to* for task name :P )
- Change: toErb, delErb, toDelErb now handles *.html.erb only, since some people might want to keep *.js.erb (like me)
- Fix: Readme Instructions
0.1.3
- The first working version for Windows!
- Rake task are displayed correctly
- I only notice the naming is reversed after releasing lol
Getting Started
- Add
gem "erb2haml-win"
to the development group in your Gemfile.
Either add the line gem "erb2haml-win", :group => :development
to your Gemfile
, or
group :development do
...
gem "erb2haml-win" # Add this line
...
end
- Run
rake haml:toErb
- Watch your .HTML.ERB files getting converted to haml.
And that's it!
Full command list:
rake haml:toErb
for converting *.html.erbrake haml:delErb
for deleting *.html.erbrake haml:toDelErb
for converting & deleting *.html.erbrake haml:toJsErb
for converting *.js.erbrake haml:delJsErb
for deleting *.js.erbrake haml:toDelJsErb
for converting & deleting *.js.erbrake haml:toDelAllErb
for converting & deleting .erb **Use with caution/backup*
Comming (or not)
I am so busy doing my FYP...
Copyright
Copyright (c) 2011 David Leung. See LICENSE for further details.