diff options
author | David Verhasselt <david@crowdway.com> | 2013-10-17 14:26:00 +0300 |
---|---|---|
committer | David Verhasselt <david@crowdway.com> | 2013-10-17 14:32:26 +0300 |
commit | 4990a793470a1454d1ac06ad888c872e4ec50f9b (patch) | |
tree | 58c263a78aad2959707afce2f70907323cf1b174 /guides | |
parent | 1eebfc9f66149020efe23a620da110424e5a5c33 (diff) | |
download | rails-4990a793470a1454d1ac06ad888c872e4ec50f9b.tar.gz rails-4990a793470a1454d1ac06ad888c872e4ec50f9b.tar.bz2 rails-4990a793470a1454d1ac06ad888c872e4ec50f9b.zip |
Add Sass gobbling info to asset pipeline docs
[ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/asset_pipeline.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/guides/source/asset_pipeline.md b/guides/source/asset_pipeline.md index 72aff1e0dd..7cb42f18d9 100644 --- a/guides/source/asset_pipeline.md +++ b/guides/source/asset_pipeline.md @@ -503,7 +503,11 @@ NOTE. If you want to use multiple Sass files, you should generally use the [Sass rule](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#import) instead of these Sprockets directives. Using Sprockets directives all Sass files exist within their own scope, making variables or mixins only available within the -document they were defined in. +document they were defined in. You can do file globbing as well using +`@import "*"`, and `@import "**/*"` to add the whole tree equivalent to how +`require_tree` works. Check the [sass-rails +documentation](https://github.com/rails/sass-rails#features) for more info and +important caveats. You can have as many manifest files as you need. For example, the `admin.css` and `admin.js` manifest could contain the JS and CSS files that are used for the |