Skip to content

Commit e09f708

Browse files
committed
Merge pull request #211 from olivierlacan/master
Expose preferred_syntax configuration in README
2 parents 76dc215 + 5e9eb80 commit e09f708

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,23 @@ properties that will be passed to Sass.
1616

1717
### Options
1818

19-
The [list of supported options](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#options)
19+
- `preferred_syntax` - This option determines the default Sass syntax and file extensions that will be used by Rails generators. Can be `:scss` (default CSS-compatible SCSS syntax) or `:sass` (indented Sass syntax).
20+
21+
The [list of supported Sass options](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#options)
2022
can be found on the Sass Website with the following caveats:
2123

22-
1. `:style` - This option is not supported. This is determined by the Rails environment. It's `:expanded` only on development, otherwise it's `:compressed`.
23-
2. `:never_update` - This option is not supported. Instead set `config.assets.enabled = false`
24-
3. `:always_update` - This option is not supported. Sprockets uses a controller to access stylesheets in development mode instead of a full scan for changed files.
25-
4. `:always_check` - This option is not supported. Sprockets always checks in development.
26-
5. `:syntax` - This is determined by the file's extensions.
27-
6. `:filename` - This is determined by the file's name.
28-
7. `:line` - This is provided by the template handler.
24+
- `:style` - This option is not supported. This is determined by the Rails environment. It's `:expanded` only on development, otherwise it's `:compressed`.
25+
- `:never_update` - This option is not supported. Instead set `config.assets.enabled = false`
26+
- `:always_update` - This option is not supported. Sprockets uses a controller to access stylesheets in development mode instead of a full scan for changed files.
27+
- `:always_check` - This option is not supported. Sprockets always checks in development.
28+
- `:syntax` - This is determined by the file's extensions.
29+
- `:filename` - This is determined by the file's name.
30+
- `:line` - This is provided by the template handler.
2931

3032
### Example
3133

3234
MyProject::Application.configure do
35+
config.sass.preferred_syntax = :sass
3336
config.sass.line_comments = false
3437
config.sass.cache = false
3538
end

0 commit comments

Comments
 (0)