Skip to content

Slim templates generator for Rails 3, 4 and 5

License

Notifications You must be signed in to change notification settings

diproart/slim-rails

 
 

Repository files navigation

slim-rails Build Status Code Climate

This repo only for testing case. Please use origin repo: https://github.com/slim-template/slim-rails

slim-rails provides Slim generators for Rails 3+. It was based on haml-rails and it does basically the same:

  • 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:

gem "slim-rails"

And that's it.

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

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

About

Slim templates generator for Rails 3, 4 and 5

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 79.3%
  • HTML 20.7%