diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-10-17 06:53:24 -0700 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-10-17 06:53:24 -0700 |
commit | 5824c6d0edf7f167df6915a28e8157a3ff5453bb (patch) | |
tree | fda8cd713790f14d637985755dc2b8b485bbed87 | |
parent | b4bda6565136eb82ba49dc37c6dbfc61b573e2ef (diff) | |
parent | 4990a793470a1454d1ac06ad888c872e4ec50f9b (diff) | |
download | rails-5824c6d0edf7f167df6915a28e8157a3ff5453bb.tar.gz rails-5824c6d0edf7f167df6915a28e8157a3ff5453bb.tar.bz2 rails-5824c6d0edf7f167df6915a28e8157a3ff5453bb.zip |
Merge pull request #12218 from dv/add-sass-globbing-to-asset-pipeline-docs
Add sass globbing to asset pipeline docs [ci skip]
-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 |