A summary of data about the Ruby ecosystem.

https://github.com/haml/haml-rails

let your Gemfile do the talking
https://github.com/haml/haml-rails

Keywords from Contributors

activerecord activejob mvc rubygem rack devise crash-reporting sinatra sidekiq rubocop

Last synced: about 17 hours ago
JSON representation

Repository metadata

let your Gemfile do the talking

README.md

Haml-rails

Gem Version
Ruby

Haml-rails provides Haml generators for Rails 5, 6, 7, and 8. It also enables Haml as the templating engine for you, so you don't have to screw around in your own application.rb when your Gemfile already clearly indicated what templating engine you have installed. Hurrah.

To use it, add this line to your Gemfile:

gem "haml-rails"

This ensures that:

  • Any time you generate a resource, view, or mailer, you'll get Haml templates (instead of ERB)
  • When your Rails application loads, Haml will be loaded and initialized automatically
  • Haml templates will be respected by the view template cache digestor

Pretty fancy, eh? The modern world is just so amazing.

Converting Rails application layout file to haml format

Once Haml-rails is installed on the Rails application,
you can convert the erb layout file, app/views/layouts/application.html.erb
to app/views/layouts/application.html.haml using this command:

$ rails generate haml:application_layout convert

This requires the html2haml gem and you can install it locally:

gem install html2haml

After the application layout file is converted successfully,
make sure to delete app/views/layouts/application.html.erb, so Rails can
start using app/views/layouts/application.html.haml instead.

Converting all .erb views to haml format

If you want to convert all of your .erb views into .haml, you can do so using the following command:

$ rails haml:erb2haml

If you already have .haml files for one or more of the .erb files, the rake task will give you the option of either
replacing these .haml files or leaving them in place.

Once the task is complete, you will have the option of deleting the original .erb files. Unless you are under
version control, it is recommended that you decline this option. If you are running in a script, you can use
an environment variable to answer this question.

$ HAML_RAILS_DELETE_ERB=true rails haml:erb2haml

Running the above will not prompt for the question and will delete the original .erb files. Setting this value to
false will also not prompt, however, will leave the .erb files intact.

Older versions of Rails

The current version of Haml-rails requires Rails 5.1 or later.

Haml-rails version 1.0.0 is the last version to support Rails 4. To use it, add this line to your Gemfile:

gem "haml-rails", "~> 1.0.0"

For Rails 3, use haml-rails version 0.4 by adding this line to your Gemfile instead:

gem "haml-rails", "~> 0.4.0"

Contributors

Haml generators originally from rails3-generators, and written by José Valim, André Arko, Paul Barry, Anuj Dutta, Louis T, and Chris Rhoden. Tests originally written by Louis T.

License

Ruby license or MIT license, take your pick.


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 8 days ago

Total Commits: 271
Total Committers: 63
Avg Commits per committer: 4.302
Development Distribution Score (DDS): 0.642

Commits in past year: 32
Committers in past year: 1
Avg Commits per committer in past year: 32.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
Akira Matsuda r****e@d****p 97
Andre Arko a****e@a****t 52
Ryan Bigg me@r****m 20
syguer d****v@s****m 7
Ruslan Korolev r****3@f****m 7
Olivier Lacan hi@o****m 5
Olle Jonsson o****n@g****m 4
Meng Fung m****g@g****m 4
Peter M. Goldstein p****n@g****m 3
Stewart McKee s****t@t****k 3
Kevin Southworth k****h@w****m 3
John Parker j****r@u****m 3
Geremia Taglialatela t****v@g****m 3
Jason Kim j****m@r****m 3
mikong 4****g 2
SHIMADA Koji k****a@e****m 2
JuanitoFatas k****0@g****m 2
Colin Dean g****t@c****x 2
Azarel Doroteo Pacheco a****o@l****m 2
Ruslan Korolev r****1@g****m 2
Christopher Schramm g****b@s****g 2
Daniel Kristensen r****r@g****m 2
Ryan Mitchell r****n@n****m 1
Tomasz Wałkuski t****i@c****m 1
azranel c****o@g****m 1
Gustavo Villa g****o@b****m 1
Josh Adams j****h@i****m 1
Peter Marsh p****e@m****m 1
Blake Gentry b****y@d****m 1
Alan Fung-Schwarz a****s@g****m 1
and 33 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 28 days ago

Total issues: 53
Total pull requests: 57
Average time to close issues: 8 months
Average time to close pull requests: 5 months
Total issue authors: 52
Total pull request authors: 41
Average comments per issue: 2.15
Average comments per pull request: 1.98
Merged pull request: 42
Bot issues: 0
Bot pull requests: 0

Past year issues: 2
Past year pull requests: 4
Past year average time to close issues: N/A
Past year average time to close pull requests: about 23 hours
Past year issue authors: 2
Past year pull request authors: 2
Past year average comments per issue: 0.0
Past year average comments per pull request: 0.0
Past year merged pull request: 1
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/haml/haml-rails

Top Issue Authors

  • cpanderson (2)
  • dkuku (1)
  • bknarendra (1)
  • pitr (1)
  • hmistry (1)
  • dirschn (1)
  • marvindanig (1)
  • ijdickinson (1)
  • MadBomber (1)
  • LarryFransson (1)
  • ycrepeau (1)
  • chevinbrown (1)
  • jaredmoody (1)
  • atomAltera (1)
  • tom-lord (1)

Top Pull Request Authors

  • tagliala (5)
  • amatsuda (4)
  • olleolleolle (4)
  • syguer (4)
  • mikong (2)
  • dirschn (2)
  • m-ueda (2)
  • serv (1)
  • BilalBudhani (1)
  • torrocus (1)
  • kdiogenes (1)
  • MainShayne233 (1)
  • troystarwalt (1)
  • gfvcastro (1)
  • somenugget (1)

Top Issue Labels

Top Pull Request Labels


Package metadata

gem.coop: haml-rails

Haml-rails provides Haml generators for Rails 5.1 and above. It also enables Haml as the templating engine for you, so you don't have to screw around in your own application.rb when your Gemfile already clearly indicated what templating engine you have installed. Hurrah.

  • Homepage: https://github.com/haml/haml-rails
  • Documentation: http://www.rubydoc.info/gems/haml-rails/
  • Licenses: MIT
  • Latest release: 3.0.0 (published 3 months ago)
  • Last Synced: 2025-12-08T21:37:46.298Z (6 days ago)
  • Versions: 23
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 51,903,989 Total
  • Docker Downloads: 17,682,550
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.163%
    • Downloads: 0.49%
  • Maintainers (4)
rubygems.org: haml-rails

Haml-rails provides Haml generators for Rails 5.1 and above. It also enables Haml as the templating engine for you, so you don't have to screw around in your own application.rb when your Gemfile already clearly indicated what templating engine you have installed. Hurrah.

  • Homepage: https://github.com/haml/haml-rails
  • Documentation: http://www.rubydoc.info/gems/haml-rails/
  • Licenses: MIT
  • Latest release: 3.0.0 (published 3 months ago)
  • Last Synced: 2025-12-08T21:37:46.076Z (6 days ago)
  • Versions: 23
  • Dependent Packages: 328
  • Dependent Repositories: 40,561
  • Downloads: 51,903,989 Total
  • Docker Downloads: 17,682,550
  • Rankings:
    • Dependent packages count: 0.133%
    • Dependent repos count: 0.164%
    • Downloads: 0.466%
    • Average: 1.087%
    • Docker downloads count: 1.865%
    • Stargazers count: 1.882%
    • Forks count: 2.011%
  • Maintainers (4)
proxy.golang.org: github.com/haml/haml-rails

  • Homepage:
  • Documentation: https://pkg.go.dev/github.com/haml/haml-rails#section-documentation
  • Licenses: mit
  • Latest release: v3.0.0+incompatible (published 3 months ago)
  • Last Synced: 2025-12-08T21:37:46.516Z (6 days ago)
  • Versions: 19
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Stargazers count: 2.022%
    • Forks count: 2.104%
    • Average: 6.126%
    • Dependent packages count: 9.576%
    • Dependent repos count: 10.802%

Dependencies

Gemfile rubygems
  • html2haml >= 0
haml-rails.gemspec rubygems
  • appraisal >= 0 development
  • bundler >= 0 development
  • html2haml >= 1.0.1 development
  • rails >= 5.1 development
  • rake >= 0 development
  • actionpack >= 5.1
  • activesupport >= 5.1
  • haml >= 4.0.6, < 6.0
  • railties >= 5.1
.github/workflows/ruby.yml actions
  • actions/checkout v3 composite
  • ruby/setup-ruby v1 composite

Score: 29.874734267974716