aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/asset_pipeline.textile
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-10-09 20:10:53 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-10-09 20:10:53 +0530
commita2edc884f3188b076ef8856521f96bb8528b4287 (patch)
treee4fb02eaeabd9f027a3dc718932aa02c5c52e40b /railties/guides/source/asset_pipeline.textile
parent1774ec7464877cfb2e0900344deff17c78bc491f (diff)
parent3a72c01be2add83c76e6180d60a520491484c01e (diff)
downloadrails-a2edc884f3188b076ef8856521f96bb8528b4287.tar.gz
rails-a2edc884f3188b076ef8856521f96bb8528b4287.tar.bz2
rails-a2edc884f3188b076ef8856521f96bb8528b4287.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'railties/guides/source/asset_pipeline.textile')
-rw-r--r--railties/guides/source/asset_pipeline.textile2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile
index df41c7a9e8..afaf0f6fe3 100644
--- a/railties/guides/source/asset_pipeline.textile
+++ b/railties/guides/source/asset_pipeline.textile
@@ -234,6 +234,8 @@ The directives that work in the JavaScript files also work in stylesheets, obvio
In this example +require_self+ is used. This puts the CSS contained within the file (if any) at the precise location of the +require_self+ call. If +require_self+ is called more than once, only the last call is respected.
+NOTE. If you want to use multiple Sass files, use the "Sass +@import+ rule":http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#import instead of the 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.
+
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 admin section of an application.
The same remarks about ordering made above apply. In particular, you can specify individual files and they are compiled in the order specified: