Provides hamlit generators for Rails. It also enables hamlit as the templating engine and "hamlit:erb2haml" rake task that converts erb files to haml.
Add this line to your application's Gemfile:
gem 'hamlit-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hamlit-rails
By installing this gem, Haml templates are generated on rails g
.
Also, use the following rake task to convert .erb to .haml:
bundle exec rake hamlit:erb2haml
- Fork it ( https://github.com/mfung/hamlit-rails/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
This code is heavily influenced by haml-rails. And is written because of an issue created in that repo.
MIT license