Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

slim-rails

> 编程语言
Open source

Slim templates generator for Rails

720 stars0 likes3 views
WebsiteGitHub

About

Slim templates generator for Rails

slim-rails

slim-rails provides Slim generators for Rails:

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

To use it, add this line to your Gemfile:

ruby
gem "slim-rails"

And that's it.

Every time you generate a controller or scaffold, you'll get Slim templates.

If you have existing .erb templates, check out our guide How to convert your .erb templates to .slim on how to achieve this.

This gem is tested with Ruby on Rails 7.0+.

History

slim-rails was based on haml-rails and it does basically the same thing.

From the version 0.2.0, there is no need to include gem "slim" in your Gemfile.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Ruby

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言