mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Change the recommended mode of Rails installation to config.gem or Gemfile.
This commit is contained in:
parent
1770f6dd23
commit
6bd452b995
2 changed files with 15 additions and 7 deletions
|
@ -39,9 +39,14 @@ Use `haml --help` for full documentation.
|
|||
|
||||
### Rails/Merb Plugin {#plugin}
|
||||
|
||||
To enable Haml as a Rails plugin, run
|
||||
To enable Haml in Rails versions before Rails 3,
|
||||
add the following line to `environment.rb`:
|
||||
|
||||
haml --rails path/to/rails/app
|
||||
config.gem "haml"
|
||||
|
||||
For Rails 3, instead add the following line to the Gemfile:
|
||||
|
||||
gem "haml"
|
||||
|
||||
Once it's installed, all view files with the `".html.haml"` extension
|
||||
will be compiled using Haml.
|
||||
|
|
|
@ -97,17 +97,20 @@ and using {Sass::Engine} like so:
|
|||
|
||||
### Rack/Rails/Merb Plugin
|
||||
|
||||
To enable Sass as a Rails plugin, run
|
||||
To enable Sass in Rails versions before Rails 3,
|
||||
add the following line to `environment.rb`:
|
||||
|
||||
haml --rails path/to/rails/app
|
||||
config.gem "haml"
|
||||
|
||||
For Rails 3, instead add the following line to the Gemfile:
|
||||
|
||||
gem "haml"
|
||||
|
||||
To enable Sass in Merb,
|
||||
add
|
||||
add the following line to `config/dependencies.rb`:
|
||||
|
||||
dependency "merb-haml"
|
||||
|
||||
to `config/dependencies.rb`.
|
||||
|
||||
To enable Sass in a Rack application,
|
||||
add
|
||||
|
||||
|
|
Loading…
Reference in a new issue