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 rspec
Last synced: about 1 hour ago
JSON representation
Repository metadata
let your Gemfile do the talking
- Host: GitHub
- URL: https://github.com/haml/haml-rails
- Owner: haml
- License: mit
- Created: 2010-08-13T23:56:16.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2025-09-29T02:17:49.000Z (5 months ago)
- Last Synced: 2026-03-03T16:54:16.634Z (7 days ago)
- Language: Ruby
- Homepage:
- Size: 216 KB
- Stars: 1,045
- Watchers: 22
- Forks: 173
- Open Issues: 29
- Releases: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
README.md
Haml-rails
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
- Name: Haml
- Login: haml
- Email:
- Kind: organization
- Description:
- Website: http://haml.info
- Location:
- Twitter: HamlHTML
- Company:
- Icon url: https://avatars.githubusercontent.com/u/1686160?v=4
- Repositories: 7
- Last ynced at: 2025-10-30T11:45:55.196Z
- Profile URL: https://github.com/haml
GitHub Events
Total
- Pull request event: 3
- Fork event: 5
- Watch event: 13
- Issue comment event: 20
- Push event: 7
Last Year
- Pull request event: 3
- Fork event: 2
- Watch event: 7
- Issue comment event: 19
- Push event: 5
Committers metadata
Last synced: 6 days ago
Total Commits: 271
Total Committers: 63
Avg Commits per committer: 4.302
Development Distribution Score (DDS): 0.642
Commits in past year: 28
Committers in past year: 1
Avg Commits per committer in past year: 28.0
Development Distribution Score (DDS) in past year: 0.0
| Name | 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:
- mediafinger.com: 1
- bilalbudhani.com: 1
- redhat.com: 1
- ralphrooding.com: 1
- neersighted.com: 1
- me.com: 1
- mac.com: 1
- candidminds.com: 1
- synk.net: 1
- ya.ru: 1
- digitaria.com: 1
- modeltwozero.com: 1
- isotope11.com: 1
- backlotcars.com: 1
- cubiware.com: 1
- napaswdev.com: 1
- shakaweb.org: 1
- gmx.com: 1
- logicalbricks.com: 1
- cad.cx: 1
- enishi-tech.com: 1
- rhapsody.com: 1
- urgetopunt.com: 1
- webascender.com: 1
- theizone.co.uk: 1
- olivierlacan.com: 1
- fastmail.com: 1
- syguer.com: 1
- ryanbigg.com: 1
- arko.net: 1
- dio.jp: 1
Issue and Pull Request metadata
Last synced: 3 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: 2.0
Merged pull request: 42
Bot issues: 0
Bot pull requests: 0
Past year issues: 1
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: 1
Past year pull request authors: 2
Past year average comments per issue: 0.0
Past year average comments per pull request: 0.25
Past year merged pull request: 1
Past year bot issues: 0
Past year bot pull requests: 0
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
- Total packages: 8
-
Total downloads:
- rubygems: 107,419,835 total
- Total docker downloads: 35,365,100
- Total dependent packages: 328 (may contain duplicates)
- Total dependent repositories: 40,561 (may contain duplicates)
- Total versions: 70
- Total maintainers: 4
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 5 months ago)
- Last Synced: 2026-03-08T14:01:58.133Z (2 days ago)
- Versions: 23
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 53,706,685 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)
ubuntu-24.10: ruby-haml-rails
- Homepage: https://github.com/haml/haml-rails
- Licenses: mit
- Latest release: 2.1.0-1ubuntu1 (published 29 days ago)
- Last Synced: 2026-03-09T17:02:11.195Z (1 day ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.285%
- Forks count: 0.533%
- Stargazers count: 0.606%
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 5 months ago)
- Last Synced: 2026-03-09T04:31:27.222Z (1 day ago)
- Versions: 23
- Dependent Packages: 328
- Dependent Repositories: 40,561
- Downloads: 53,713,150 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 5 months ago)
- Last Synced: 2026-03-07T17:01:02.086Z (3 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%
ubuntu-23.10: ruby-haml-rails
- Homepage: https://github.com/haml/haml-rails
- Licenses: mit
- Latest release: 2.1.0-1 (published 25 days ago)
- Last Synced: 2026-02-13T18:21:42.701Z (25 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-12: ruby-haml-rails
- Homepage: https://github.com/haml/haml-rails
- Documentation: https://packages.debian.org/bookworm/ruby-haml-rails
- Licenses: mit
- Latest release: 2.1.0-1 (published 26 days ago)
- Last Synced: 2026-02-12T23:31:54.445Z (26 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
ubuntu-23.04: ruby-haml-rails
- Homepage: https://github.com/haml/haml-rails
- Licenses: mit
- Latest release: 2.1.0-1 (published 28 days ago)
- Last Synced: 2026-02-11T06:40:41.105Z (28 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
Dependencies
- html2haml >= 0
- 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
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
Score: 29.89941737152184